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