Skip to content

Instantly share code, notes, and snippets.

@schemapress
Last active September 24, 2017 21:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save schemapress/6f0a9e21befd8465d817abe2d5195e8a to your computer and use it in GitHub Desktop.
Save schemapress/6f0a9e21befd8465d817abe2d5195e8a to your computer and use it in GitHub Desktop.
Extend Schema WordPress Plugin Knowledge Graph JSON-LD output https://schema.press/
<?php //* do not include php tag
add_action('schema_wp_knowledge_graph_json', 'schema_wp_knowledge_graph_json_123456');
/**
* Extend Schema Knowledge Graph JSON-LD output
*
* @return schema json-ld array
*/
function schema_wp_knowledge_graph_json_123456( $schema ) {
$schema['founder'] = "Founder Name"; // This can be a Person or Organization
return $schema;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment