Automattic\WooCommerce\Internal

Brands::preparepublic staticWC 1.0

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() code WC 9.8.5

public static function prepare() {

	if ( ! self::is_enabled() ) {
		return;
	}

	if ( function_exists( 'wc_brands_init' ) ) {
		remove_action( 'plugins_loaded', 'wc_brands_init', 1 );
	}
}