Yoast\WP\SEO\Conditionals
Premium_Inactive_Conditional{}
Abstract class for creating conditionals based on feature flags.
Хуков нет.
Использование
$Premium_Inactive_Conditional = new Premium_Inactive_Conditional(); // use class methods
Методы
- public is_met()
Код Premium_Inactive_Conditional{} 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(); } }