Created
July 29, 2015 07:43
-
-
Save woogist/8a090bc0d89eab1a3b35 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 eg_do_not_activate_subscription_on_processing(){ | |
remove_action( 'woocommerce_order_status_processing', 'WC_Subscriptions_Manager::activate_subscriptions_for_order' ); | |
remove_action( 'woocommerce_order_status_processing', 'WC_Subscriptions_Order::maybe_record_order_payment' ); | |
} | |
add_action( 'woocommerce_order_status_processing', 'eg_do_not_activate_subscription_on_processing', 0 ); // run on priority 0 to trigger before Subscriptions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment