Automattic\WooCommerce\Internal
Brands::prepare
If WooCommerce Brands gets activated forcibly, without WooCommerce active (e.g. via '--skip-plugins'), remove WooCommerce Brands initialization functions early on in the plugins_loaded
Method of the class: Brands{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = Brands::prepare();
Brands::prepare() Brands::prepare code WC 10.8.1
public static function prepare() {
if ( ! self::is_enabled() ) {
return;
}
if ( function_exists( 'wc_brands_init' ) ) {
remove_action( 'plugins_loaded', 'wc_brands_init', 1 );
}
}