Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Modify The Author Schema Markup https://schema.press/docs/modify-author-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
unset($author['url']);
// 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.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.