Skip to content

Instantly share code, notes, and snippets.

@lukecav
Created December 1, 2017 03:56
Show Gist options
  • Select an option

  • Save lukecav/6d25b02341a4c0497b93bcccd2984d13 to your computer and use it in GitHub Desktop.

Select an option

Save lukecav/6d25b02341a4c0497b93bcccd2984d13 to your computer and use it in GitHub Desktop.
Add wording before the regular price in WooCommerce
add_filter( 'woocommerce_get_price_html', 'custom_price_message' );
function custom_price_message( $price ) {
$wording = ' Pricing ';
return $wording . $price;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment