Add EAN to schema

#31606
Viewing 1 replies (of 1 total)
  • Todd
    Rank Math free

    Hi,

    Thanks for getting in touch with us.

    You can extend your schema using this filter in your theme’s functions.php file:

    add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
    	$entity['brand'] = 'yourbrandhere';
    	$entity['offers']['priceValidUntil'] = '2020-12-31';
    	$entity['gtin13'] = str_replace('-', '',$entity['gtin']);
    	return $entity;
    });

    Please change the fields as per your requirements and needs.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘Add EAN to schema’ is closed to new replies.