The WooCommerce Plugin is also developed with SEO in mind and provides your website with the schema markup for products (as well as other microdata useful for search engines).
This means by default your products are going to show on Google together with other data such as review stars, stock status, number of reviews and – you saw that coming – the product price.
In certain case scenario, however, you may want to hide WooCommerce product prices from Google search results (and all the other search engines of course). For example, because your prices are only visible to logged in users; or maybe because you don’t want to display your prices until potential customers go to your website and read all the product benefits as opposed to having them make a price-only decision.
Either way, let’s see how it’s done. And once again, it’s one line of code. Enjoy!
PHP Snippet: Remove WooCommerce Product Prices From Google Search Results
/** * @snippet SHide Prices @ Google * @how-to Get CustomizeWoo.com FREE * @author Rodolfo Melogli, BusinessBloomer.com * @testedwith WooCommerce 4.6 * @donate $9 https://businessbloomer.com/bloomer-armada/ */ add_filter( 'woocommerce_structured_data_product_offer', '__return_empty_array' );