[Tutorials] Hide product prices that appear on google search

woocommerce-hide-product-price-on-google

[Tutorials] Hide product prices that appear on google search

For some reason, you want to hide the product price that appears on google when customers search. You want customers to visit the product instead of flipping through when seeing the price.

Today, flatsomea-z will show you how to hide the price of a product with an extremely simple code.

woocommerce-hide-product-price-on-google
woocommerce-hide-product-price-on-google

You just need to copy and page the following code into functions.php.

add_filter( 'woocommerce_structured_data_product_offer', '__return_empty_array' );

Good luck!

Trả lời

Email của bạn sẽ không được hiển thị công khai.