Yoast\WP\SEO\Conditionals

Premium_Active_Conditional{}Yoast 1.0

Class Premium_Active_Conditional.

Хуков нет.

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

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

Методы

  1. public is_met()

Код Premium_Active_Conditional{} Yoast 19.6.1

class Premium_Active_Conditional implements Conditional {

	/**
	 * Returns whether or not this conditional is met.
	 *
	 * @return bool Whether or not the conditional is met.
	 */
	public function is_met() {
		return \YoastSEO()->helpers->product->is_premium();
	}
}