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

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

add_action( 'woocommerce_installed', 'wp_kama_woocommerce_installed_action' );

/**
 * Function for `woocommerce_installed` action-hook.
 * 
 * @return void
 */
function wp_kama_woocommerce_installed_action(){

	// action...
}

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

WC_Install::install()
woocommerce_installed
woocommerce/includes/class-wc-install.php 386
do_action( 'woocommerce_installed' );

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

woocommerce/includes/admin/class-wc-admin-notices.php 54
add_action( 'woocommerce_installed', array( __CLASS__, 'reset_admin_notices' ) );
woocommerce/includes/class-woocommerce.php 213
add_action( 'woocommerce_installed', array( $this, 'add_woocommerce_inbox_variant' ) );
woocommerce/includes/wc-core-functions.php 2313
add_action( 'woocommerce_installed', 'wc_delete_expired_transients' );