Created
December 1, 2017 03:56
-
-
Save lukecav/6d25b02341a4c0497b93bcccd2984d13 to your computer and use it in GitHub Desktop.
Add wording before the regular price in WooCommerce
This file contains hidden or 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
| 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