Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter( 'rank_math/json_ld', function( $data, $jsonld ) {
- if ( isset( $data['richSnippet'] ) && 'Product' === $data['richSnippet']['@type'] ) {
- $data['richSnippet']['@id'] = 'ADD_ID_HERE';
- }
- }, 99, 2);
Add Comment
Please, Sign In to add comment