WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
класс не описан

Yoast\WP\SEO\Conditionals

WooCommerce_Conditional{} Yoast 1.0

Conditional that is only met when WooCommerce is active.

Хуков нет.

Возвращает

Null. Ничего.

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

$WooCommerce_Conditional = new WooCommerce_Conditional();
// use class methods

Методы

  1. is_met()

Код WooCommerce_Conditional{} Yoast 15.6.2

<?php
class WooCommerce_Conditional implements Conditional {

	/**
	 * Returns `true` when the WooCommerce plugin is installed and activated.
	 *
	 * @returns boolean `true` when the WooCommerce plugin is installed and activated.
	 */
	public function is_met() {
		return \class_exists( 'WooCommerce' );
	}
}