WooCommerce::is_wc_admin_active()publicWC 1.0

Is the WooCommerce Admin actively included in the WooCommerce core? Based on presence of a basic WC Admin function.

{} Это метод класса: WooCommerce{}

Хуков нет.

Возвращает

true|false.

Использование

$WooCommerce = new WooCommerce();
$WooCommerce->is_wc_admin_active();

Код WooCommerce::is_wc_admin_active() WC 6.9.4

public function is_wc_admin_active() {
	return function_exists( 'wc_admin_url' );
}