WooCommerce::is_wc_admin_active()
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() WooCommerce::is wc admin active WC 9.3.3
public function is_wc_admin_active() { return function_exists( 'wc_admin_url' ); }