Hook not working – woocommerce_subscription_payment_complete
-
Should the hook – woocommerce_subscription_payment_complete work with automatic payment? I have WordPress cron disabled, I use cron hosting. I receive automatic emails that the payment was successful, but why the hook does not work at this moment with automatic payment is unknown
I need to perform actions every time there is a successful subscription renewal operation.
What hook should I use?
it’s my function for the test. My hook works fine only when I buy for the first timeadd_action( "woocommerce_subscription_payment_complete", "everyMonthCreateNewCounterSubsProducts" ); function everyMonthCreateNewCounterSubsProducts( $subscription ) { $headers = array( 'content-type: text/html', 'From: [email protected]' ); $to = "[email protected]"; wp_mail( $to, "subscription_payment", "", $headers ); }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Hook not working – woocommerce_subscription_payment_complete’ is closed to new replies.