Yoast\WP\SEO\Conditionals

WooCommerce_Conditional{}Yoast 1.0

Conditional that is only met when WooCommerce is active.

Хуков нет.

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

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

Методы

  1. public is_met()

Код WooCommerce_Conditional{} Yoast 18.8

class WooCommerce_Conditional implements Conditional {

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