woocommerce_init
Action triggered after WooCommerce initialization finishes.
Usage
add_action( 'woocommerce_init', 'wp_kama_woocommerce_init_action' ); /** * Function for `woocommerce_init` action-hook. * * @return void */ function wp_kama_woocommerce_init_action(){ // action... }
Where the hook is called
woocommerce_init
woocommerce/includes/class-woocommerce.php 856
do_action( 'woocommerce_init' ); // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingSinceComment