Change Subscription Price String

If all subscriptions have the same term (e.g. 1 year), this can help adjust the wording to something more specific.

function my_subs_price_string( $pricestring ) {

    $newprice = str_replace( 'for 1 year and a', 'any text here', $pricestring );
	return $newprice;

add_filter( 'woocommerce_subscriptions_product_price_string', 'my_subs_price_string' );
add_filter( 'woocommerce_subscription_price_string', 'my_subs_price_string' );

Leave a Reply

katherine as a flat graphic icon

About Me

I’m an African / Ojibwe First Nations Web Developer living in Winnipeg, Manitoba.

Visit the Tips and Blog to see what I’m working on.