Yoast\WP\SEO\Editors\Domain\Analysis_Features
Analysis_Feature_Interface{}
This interface describes an Analysis feature implementation.
Хуков нет.
Использование
$Analysis_Feature_Interface = new Analysis_Feature_Interface(); // use class methods
Методы
- public get_legacy_key()
- public get_name()
- public is_enabled()
Код Analysis_Feature_Interface{} Analysis Feature Interface{} Yoast 24.4
interface Analysis_Feature_Interface { /** * Returns If the analysis is enabled. * * @return bool */ public function is_enabled(): bool; /** * Returns the name of the object. * * @return string */ public function get_name(): string; /** * Returns the legacy key used in the front-end to determine if the feature is enabled. * * @return string */ public function get_legacy_key(): string; }