Yoast\WP\SEO\Conditionals

Premium_Inactive_Conditional{}Yoast 1.0

Abstract class for creating conditionals based on feature flags.

Хуков нет.

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

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

Методы

  1. public is_met()

Код Premium_Inactive_Conditional{} Yoast 24.0

class Premium_Inactive_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();
	}
}