Yoast\WP\SEO\Conditionals
Text_Formality_Conditional{}└─ Feature_Flag_Conditional
Checks if the YOAST_SEO_TEXT_FORMALITY constant is set.
Хуков нет.
Использование
$Text_Formality_Conditional = new Text_Formality_Conditional(); // use class methods
Методы
- public get_feature_flag()
Код Text_Formality_Conditional{} Text Formality Conditional{} Yoast 26.5
class Text_Formality_Conditional extends Feature_Flag_Conditional {
/**
* Returns the name of the feature flag.
* 'YOAST_SEO_' is automatically prepended to it and it will be uppercased.
*
* @return string the name of the feature flag.
*/
public function get_feature_flag() {
return 'TEXT_FORMALITY';
}
}