before_woocommerce_init

before_woocommerce_init

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.7.1

do_action('before_woocommerce_init') is found 1 times:

  • /includes/class-woocommerce.php line 837
    833
    834
    835
    836
    837
    838
    839
    840
    841
    842
    843
    public function init() {
        /**
         * Action triggered before WooCommerce initialization begins.
         */
        do_action( 'before_woocommerce_init' ); // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingSinceComment
     
        // Set up localisation.
        $this->load_plugin_textdomain();
     
        // Load class instances.
        $this->product_factory                     = new WC_Product_Factory();

See this hook used in plugins: