-
Hi,
I’m trying to remove the author schema for Woocommerce products.
I tried this in functions.php but it’s not working:
add_filter( "rank_math/snippet/rich_snippet_product_entity", function( $entity ) {
unset($entity['offers']['price']);
unset($entity['offers']['priceSpecification']);
unset($entity['offers']['priceValidUntil']);
unset($entity['offers']['priceCurrency']);
unset($entity['mainEntityOfPage']['author']);return $entity;
});Also, how do I remove these meta tags?
<meta property=”product:price:amount” content=”5.99″ />
<meta property=”product:price:currency” content=”CAD” />
<meta property=”product:availability” content=”instock” />
<meta name=”twitter:label1″ content=”Price” />
<meta name=”twitter:data1″ content=”$5.99 CAD” />
The ticket ‘Remove pricing schema for Woocommerce products’ is closed to new replies.