Home / Admin / Remove Author Schema entirely from the website
Duplicate Snippet

Embed Snippet on Your Site

Remove Author Schema entirely from the website

This snippet removes Author Schema entirely from the website

80+
Code Preview
php
<?php
add_filter( 'aioseo_schema_output', 'add_author_name_when_missing' );
function add_author_name_when_missing( $schema ) {	
	foreach ( $schema as &$schemaItem ) {
		if ( isset($schemaItem['author']) ) {
			unset($schemaItem['author']);
		}
	}
	return $schema;
}

Comments

Add a Comment