Skip to content

Instantly share code, notes, and snippets.

View melmacpacattack's full-sized avatar

melmacpacattack

View GitHub Profile
@melmacpacattack
melmacpacattack / gist:cf4130b7c7e45e042fecd1f707c768dd
Last active October 13, 2017 11:10
Subscription String Change 1
add_filter( 'woocommerce_subscriptions_product_price_string', 'my_subs_price_string', 10, 3 );
function my_subs_price_string( $subscription_string, $product, $include ) {
global $product;
$products_to_change = array( 1, 2, 3, 4, 5, 6 );
/****
var_dump($product); Various variables are available to us
****/