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.5.1

do_action('before_woocommerce_init') is found 1 times:

  • /includes/class-woocommerce.php line 835
    	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: