Skip to content

Instantly share code, notes, and snippets.

@LaurenaRehbein
Created May 18, 2017 00:41
Show Gist options
  • Save LaurenaRehbein/f45fa5b908b1bdaabeab6947b76d547a to your computer and use it in GitHub Desktop.
Save LaurenaRehbein/f45fa5b908b1bdaabeab6947b76d547a to your computer and use it in GitHub Desktop.
To change the wording on the Donations customization
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