Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Add Product Brand to All Products (WooCommerce)
// Add Brand for Products.
// Only use if you sell one brand of item ie. Your own brand
add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
$entity['brand'] = 'My Brand' ;
return $entity;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment