Skip to content

Instantly share code, notes, and snippets.

@kloon
Last active October 12, 2015 10:48
Show Gist options
  • Save kloon/4015723 to your computer and use it in GitHub Desktop.
Save kloon/4015723 to your computer and use it in GitHub Desktop.
WooCommerce Change empty price text
// Change empty price
function custom_empty_price( $price, $product ) {
return __( 'Call or Email for price', 'WooCommerce' ) ;
}
add_filter( 'woocommerce_variable_empty_price_html', 'custom_empty_price', 10, 2 );
add_filter( 'woocommerce_empty_price_html', 'custom_empty_price', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment