Skip to content

Instantly share code, notes, and snippets.

@woogist
Created August 6, 2015 10:08
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save woogist/fb02f7b1752c2c53773d to your computer and use it in GitHub Desktop.
Save woogist/fb02f7b1752c2c53773d to your computer and use it in GitHub Desktop.
function wc_subscriptions_custom_price_string( $pricestring ) {
$newprice = str_replace( 'every 3 months', 'per season', $pricestring );
return $newprice;
}
add_filter( 'woocommerce_subscriptions_product_price_string', 'wc_subscriptions_custom_price_string' );
add_filter( 'woocommerce_subscription_price_string', 'wc_subscriptions_custom_price_string' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment