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