Skip to content

Instantly share code, notes, and snippets.

@ewistrand
Forked from mikejolley/gist:1597957
Created November 5, 2015 17:09
Show Gist options
  • Save ewistrand/e7c034d07216384bb622 to your computer and use it in GitHub Desktop.
Save ewistrand/e7c034d07216384bb622 to your computer and use it in GitHub Desktop.
WooCommerce - Replace '' with 'Call for price' when price is left blank
/**
* This code should be added to functions.php of your theme
**/
add_filter('woocommerce_empty_price_html', 'custom_call_for_price');
function custom_call_for_price() {
return 'Call for price';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment