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 9.3.3

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