WooCommerce Hide Product Price (No Plugin Needed) - React to WordPress

WooCommerce Hide Product Price (No Plugin Needed)

Hello, In this simple tutorial I will show you; how to hide your WooCommerce product price even if it’s not set to zero. You will not need to install any plugins or bang your head around on how to implement the code – everything is explained.

Also look WooCommerce Hide Products Without Price (Simple Fix)

How to apply “WooCommerce Hide Product Price” Fix?

This is relatively simple; you have two options, choose one:

  1. Edit your functions.php file with your favorite FTP client add this functions to the end of the file.
  2. Edit through the WordPress theme editor located at Appearance > Editor > functions.php and add this functions to the end of the file.

The Fix

add_filter( 'woocommerce_get_price_html', 'react2wp_woocommerce_hide_product_price' );
function react2wp_woocommerce_hide_product_price( $price ) {
    return '';

If your theme is built the right way, and working correctly with WooCommerce, this filter should remove any memory of product pricing from the front end and still leave you the option to set up the price in the backend.

More about: Best WordPress web hosting in 2018  

One comment on “WooCommerce Hide Product Price (No Plugin Needed)”

Leave a Reply

Your email address will not be published. Required fields are marked *