woocommerce_helper_subscription_activate_success
Fires when the Helper activates a product successfully.
Использование
add_action( 'woocommerce_helper_subscription_activate_success', 'wp_kama_woocommerce_helper_subscription_activate_success_action', 10, 3 ); /** * Function for `woocommerce_helper_subscription_activate_success` action-hook. * * @param int $product_id Product ID being activated. * @param string $product_key Subscription product key. * @param array $activation_response The response object from wp_safe_remote_request(). * * @return void */ function wp_kama_woocommerce_helper_subscription_activate_success_action( $product_id, $product_key, $activation_response ){ // action... }
- $product_id(int)
- Product ID being activated.
- $product_key(строка)
- Subscription product key.
- $activation_response(массив)
- The response object from wp_safe_remote_request().
Где вызывается хук
woocommerce_helper_subscription_activate_success
woocommerce_helper_subscription_activate_success
woocommerce/includes/admin/helper/class-wc-helper.php 1088
do_action( 'woocommerce_helper_subscription_activate_success', $product_id, $product_key, $activation_response );
woocommerce/includes/admin/helper/class-wc-helper.php 2028
do_action( 'woocommerce_helper_subscription_activate_success', $product_id, $product_key, $activation_response );