Yoast\WP\SEO\Conditionals

Text_Formality_Conditional{}Yoast 1.0

Checks if the YOAST_SEO_TEXT_FORMALITY constant is set.

Хуков нет.

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

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

Методы

  1. public get_feature_flag()

Код Text_Formality_Conditional{} Yoast 19.10

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';
	}
}