Created
May 18, 2017 00:41
-
-
Save LaurenaRehbein/f45fa5b908b1bdaabeab6947b76d547a to your computer and use it in GitHub Desktop.
To change the wording on the Donations customization
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 wtd_subscriptions_custom_price_string( $pricestring ) { | |
$newprice = str_replace( 'for 1 day', 'once', $pricestring ); | |
return $newprice; | |
} | |
add_filter( 'woocommerce_subscriptions_product_price_string', 'wtd_subscriptions_custom_price_string' ); | |
function lr_subscriptions_custom_price_string( $pricestring ) { | |
$newprice = str_replace( 'every day once', 'once', $pricestring ); | |
return $newprice; | |
} | |
add_filter( 'woocommerce_subscriptions_product_price_string', 'lr_subscriptions_custom_price_string' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment