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
Метод класса: Brands{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$result = Brands::prepare();
Код Brands::prepare() Brands::prepare WC 9.5.1
public static function prepare() { if ( ! self::is_enabled() ) { return; } if ( function_exists( 'wc_brands_init' ) ) { remove_action( 'plugins_loaded', 'wc_brands_init', 1 ); } }