Skip to content

Instantly share code, notes, and snippets.

@tommyshellberg
Created April 3, 2015 02:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tommyshellberg/95b6ce8fcebc09236cdd to your computer and use it in GitHub Desktop.
Save tommyshellberg/95b6ce8fcebc09236cdd to your computer and use it in GitHub Desktop.
Append the WooCommerce Product Price with ' per hour' string
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