-
-
Save lukecav/4796a944c8062b0a5687d74ebc5ee58b to your computer and use it in GitHub Desktop.
Change the price string globally for WooCommerce Subscriptions
This file contains 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
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
https://docs.woocommerce.com/document/subscriptions/develop/filter-reference/#section-1