Assign sku as mpn

#187795
Viewing 1 replies (of 1 total)
  • Cris
    Rank Math business

    Hello,

    Thank you for contacting us, let me assist you.

    You can use filter hooks to add/edit the SKU in your product schema. Please check the sample code below.

    You need to add it to your functions.php in your theme files.

    /**
    * Filter to change the schema data.
    * Replace $schema_type with schema name like article, review, etc.
    * @param array $entity Snippet Data
    * @return array
    */
    add_filter( “rank_math/snippet/rich_snippet_product_entity”, function( $entity ) {
    $entity[‘sku’] = ‘Your-Global-Indetifier’;
    return $entity;

    I hope that helps and please do not hesitate to contact us back anytime if you require further assistance.

    Cheers,

    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 ‘Assign sku as mpn’ is closed to new replies.