Yoast\WP\SEO\Conditionals

WooCommerce_Conditional::is_met()publicYoast 1.0

Returns true when the WooCommerce plugin is installed and activated.

Метод класса: WooCommerce_Conditional{}

Хуков нет.

Возвращает

true|false. true when the WooCommerce plugin is installed and activated.

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

$WooCommerce_Conditional = new WooCommerce_Conditional();
$WooCommerce_Conditional->is_met();

Код WooCommerce_Conditional::is_met() Yoast 19.11

public function is_met() {
	return \class_exists( 'WooCommerce' );
}