Created
August 6, 2015 10:15
-
-
Save woogist/95c2d9af6009f2c27476 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 ) { | |
global $product; | |
$products_to_change = array( 45, 90, 238 ); | |
if ( in_array( $product->id, $products_to_change ) ) { | |
$pricestring = str_replace( 'every 3 months', 'per season', $pricestring ); | |
} | |
return $pricestring; | |
} | |
add_filter( 'woocommerce_subscriptions_product_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