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

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

add_action( 'woocommerce_plugins_install_api_error', 'wp_kama_woocommerce_plugins_install_api_error_action', 10, 2 );

/**
 * Function for `woocommerce_plugins_install_api_error` action-hook.
 * 
 * @param  $slug 
 * @param  $api  
 *
 * @return void
 */
function wp_kama_woocommerce_plugins_install_api_error_action( $slug, $api ){

	// action...
}
$slug
-
$api
-

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

PluginsHelper::install_plugins()
woocommerce_plugins_install_api_error
woocommerce/src/Admin/PluginsHelper.php 202
do_action( 'woocommerce_plugins_install_api_error', $slug, $api );

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

woocommerce/src/Internal/Admin/Notes/InstallJPAndWCSPlugins.php 39
add_action( 'woocommerce_plugins_install_api_error', array( $this, 'on_install_error' ) );