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

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

add_action( 'woocommerce_addon_installed', 'wp_kama_woocommerce_addon_installed_action', 10, 2 );

/**
 * Function for `woocommerce_addon_installed` action-hook.
 * 
 * @param  $wcpay_plugin_id 
 * @param  $section         
 *
 * @return void
 */
function wp_kama_woocommerce_addon_installed_action( $wcpay_plugin_id, $section ){

	// action...
}
$wcpay_plugin_id
-
$section
-

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

WC_Admin_Addons::install_woocommerce_payments_addon()
woocommerce_addon_installed
woocommerce/includes/admin/class-wc-admin-addons.php 1124
do_action( 'woocommerce_addon_installed', $wcpay_plugin_id, $section );

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

woocommerce/includes/tracks/events/class-wc-extensions-tracking.php 24
add_action( 'woocommerce_addon_installed', array( $this, 'track_addon_install' ), 10, 2 );