Created
July 30, 2013 09:05
-
-
Save NiklasHogefjord/6111426 to your computer and use it in GitHub Desktop.
WooCommerce - Hide all prices
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* WooCommerce | |
* -------------- | |
* | |
* Hide all prices in your store. | |
* | |
* Can be useful when using WooCommerce as a quote tool. | |
* | |
*/ | |
add_filter( 'woocommerce_get_price_html', 'myprefix_hide_all_wc_prices' ); | |
function myprefix_hide_all_wc_prices( $price ) { | |
return ''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment