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

Fires after WooCommerce Blocks plugin has loaded.

This hook is intended to be used as a safe event hook for when the plugin has been loaded, and all dependency requirements have been met.

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

add_action( 'woocommerce_blocks_loaded', 'wp_kama_woocommerce_blocks_loaded_action' );

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

	// action...
}

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

Bootstrap::__construct()
woocommerce_blocks_loaded

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

woocommerce/src/Internal/Admin/WCAdminSharedSettings.php 35
add_action( 'woocommerce_blocks_loaded', array( $this, 'on_woocommerce_blocks_loaded' ), 10 );