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

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

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

WC_Helper::_helper_subscription_activate()
woocommerce_helper_subscription_activate_success
WC_Helper::activated_plugin()
woocommerce_helper_subscription_activate_success
woocommerce/includes/admin/helper/class-wc-helper.php 946
do_action( 'woocommerce_helper_subscription_activate_success', $product_id, $product_key, $activation_response );
woocommerce/includes/admin/helper/class-wc-helper.php 1379
do_action( 'woocommerce_helper_subscription_activate_success', $product_id, $product_key, $activation_response );

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

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