Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Modify The Author Schema Markup
<?php //* do not include php tag
add_filter( 'schema_wp_author', 'schema_author_output_modify_8198771356' );
* Modify The Author Schema Markup in Schema Plugin
* @param array $author
* @return array
function schema_author_output_modify_8198771356( $author ) {
// Modify author name
$author['name'] = 'Another Name';
// Modify description
$author['description'] = 'Some other description';
// Remove Author URL from the markup
// Return the array
return $author;
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.