woocommerce_helper_subscription_deactivate_success хук-событиеWC 1.0

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().

Где вызывается хук

WC_Helper::_helper_subscription_deactivate()
woocommerce_helper_subscription_deactivate_success
WC_Helper::deactivated_plugin()
woocommerce_helper_subscription_deactivate_success
woocommerce/includes/admin/helper/class-wc-helper.php 1017
do_action( 'woocommerce_helper_subscription_deactivate_success', $product_id, $product_key, $deactivation_response );
woocommerce/includes/admin/helper/class-wc-helper.php 1460
do_action( 'woocommerce_helper_subscription_deactivate_success', $product_id, $product_key, $deactivation_response );

Где используется хук в WooCommerce

Использование не найдено.