Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Schema Plugin: Add additional Social Profiles links to Knowledge Graph https://schema.press/downloads/schema/
<?php //* do not include php tag
add_filter( 'schema_wp_knowledge_graph_json', 'add_social_to_schema_wp_knowledge_graph_json_567656765' );
/**
* Schema Premium Plugin: Add additional Social Profiles links to Knowledge Graph
*
* @since 1.0.0
*/
function add_social_to_schema_wp_knowledge_graph_json_567656765( $schema ) {
$schema["sameAs"][] = 'URL #1 HERE';
$schema["sameAs"][] = 'URL #2 HERE';
return $schema;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.