Bootstrap::remove_core_blocks()

Remove core blocks.


Description Description

Older installs of WooCommerce (3.6 and below) did not use the blocks package and instead included classes directly. This code disables those core classes when running blocks as a feature plugin. Newer versions which use the Blocks package are unaffected.

When the feature plugin supports only WooCommerce 3.7+ this method can be removed.


Source Source

File: woocommerce/packages/woocommerce-blocks/src/Domain/Bootstrap.php


			

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.