Skip to content

Instantly share code, notes, and snippets.

@kloon
Created November 1, 2012 12:22
Show Gist options
  • Save kloon/3993329 to your computer and use it in GitHub Desktop.
Save kloon/3993329 to your computer and use it in GitHub Desktop.
WooCommerce Change Free price text
// 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