Yoast\WP\SEO\Conditionals
Feature_Flag_Conditional::is_met()
Returns whether or not this conditional is met.
Метод класса: Feature_Flag_Conditional{}
Хуков нет.
Возвращает
true|false
. Whether or not the conditional is met.
Использование
$Feature_Flag_Conditional = new Feature_Flag_Conditional(); $Feature_Flag_Conditional->is_met();
Код Feature_Flag_Conditional::is_met() Feature Flag Conditional::is met Yoast 22.4
public function is_met() { $feature_flag = \strtoupper( $this->get_feature_flag() ); return \defined( 'YOAST_SEO_' . $feature_flag ) && \constant( 'YOAST_SEO_' . $feature_flag ) === true; }