Created
November 1, 2012 12:22
-
-
Save kloon/3993329 to your computer and use it in GitHub Desktop.
WooCommerce Change Free price text
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
// Change free price text | |
function custom_free_price( $price, $product ) { | |
return ''; | |
} | |
add_filter( 'woocommerce_free_sale_price_html', 'custom_free_price', 10, 2 ); | |
add_filter( 'woocommerce_free_price_html', 'custom_free_price', 10, 2 ); | |
add_filter( 'woocommerce_variable_free_price_html', 'custom_free_price', 10, 2 ); | |
add_filter( 'woocommerce_variable_free_sale_price_html', 'custom_free_price', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment