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

Fires when the Helper fails to activate a product.

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

add_action( 'woocommerce_helper_subscription_activate_error', 'wp_kama_woocommerce_helper_subscription_activate_error_action', 10, 3 );

/**
 * Function for `woocommerce_helper_subscription_activate_error` 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_error_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_error
WC_Helper::activated_plugin()
woocommerce_helper_subscription_activate_error
woocommerce/includes/admin/helper/class-wc-helper.php 955
do_action( 'woocommerce_helper_subscription_activate_error', $product_id, $product_key, $activation_response );
woocommerce/includes/admin/helper/class-wc-helper.php 1390
do_action( 'woocommerce_helper_subscription_activate_error', $product_id, $product_key, $activation_response );

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

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