Created
April 3, 2015 02:29
-
-
Save tommyshellberg/95b6ce8fcebc09236cdd to your computer and use it in GitHub Desktop.
Append the WooCommerce Product Price with ' per hour' string
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_string', 100, 2 ); | |
function custom_price_string( $price, $product ){ | |
return $price . ' per hour'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment