-
Hello!
I would like to add a provider on all Service schemas. Is this hook okay:
add_filter( 'rank_math/snippet/rich_snippet_service_entity', function( $entity ) {
$entity['provider']['@type'] = 'RoofingContractor';
$entity['provider']['name'] = ['Tejados Madrid LISER','Tejados Madrid LISER 2'];
return $entity;
});or should it be this one:
add_filter( 'rank_math/snippet/rich_snippet_service_entity', function( $entity ) {
$entity['service']['provider']['@type'] = 'RoofingContractor';
$entity['service']['provider']['name'] = ['Tejados Madrid LISER','Tejados Madrid LISER 2'];
return $entity;
});Thanks!
The ticket ‘Add provider inside in all Service schemas’ is closed to new replies.