Skip to content

Instantly share code, notes, and snippets.

@woogist
Created August 6, 2015 10:18
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save woogist/0ba8ebe303680d7fb5ae to your computer and use it in GitHub Desktop.
Save woogist/0ba8ebe303680d7fb5ae to your computer and use it in GitHub Desktop.
function wc_subscriptions_custom_price_string( $pricestring ) {
$pricestring = str_replace( 'every 3 months', 'per season', $pricestring );
$pricestring = str_replace( 'sign-up fee', 'initial payment', $pricestring );
return $pricestring;
}
add_filter( 'woocommerce_subscriptions_product_price_string', 'wc_subscriptions_custom_price_string' );
add_filter( 'woocommerce_subscription_price_string', 'wc_subscriptions_custom_price_string' );
@de-b
Copy link

de-b commented Mar 14, 2017

Hi is there anyway to change price now, then into plus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment