20 lines
433 B
PHP
Executable File
20 lines
433 B
PHP
Executable File
<?php
|
|
|
|
namespace Yoast\WP\SEO\Conditionals;
|
|
|
|
/**
|
|
* Checks if the YOAST_SEO_TEXT_FORMALITY constant is set.
|
|
*/
|
|
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';
|
|
}
|
|
}
|