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

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

add_action( 'woocommerce_plugins_install_error', 'wp_kama_woocommerce_plugins_install_error_action', 10, 4 );

/**
 * Function for `woocommerce_plugins_install_error` action-hook.
 * 
 * @param  $slug     
 * @param  $api      
 * @param  $result   
 * @param  $upgrader 
 *
 * @return void
 */
function wp_kama_woocommerce_plugins_install_error_action( $slug, $api, $result, $upgrader ){

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

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

PluginsHelper::install_plugins()
woocommerce_plugins_install_error
woocommerce/src/Admin/PluginsHelper.php 232
do_action( 'woocommerce_plugins_install_error', $slug, $api, $result, $upgrader );

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

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