Yoast\WP\SEO\Abilities\User_Interface\Abilities
Get_Inclusive_Language_Scores_Ability{}└─ Abstract_Score_Ability
The ability that returns the inclusive language scores of the most recently modified posts.
Хуков нет.
Использование
$Get_Inclusive_Language_Scores_Ability = new Get_Inclusive_Language_Scores_Ability(); // use class methods
Методы
- public get_name()
- protected get_description()
- protected get_execute_callback()
- protected get_feature_name()
- protected get_label()
Код Get_Inclusive_Language_Scores_Ability{} Get Inclusive Language Scores Ability{} Yoast 28.9
class Get_Inclusive_Language_Scores_Ability extends Abstract_Score_Ability {
/**
* Returns the full name of the ability.
*
* @return string The ability name.
*/
public function get_name(): string {
return Ability_Categories_Integration::CATEGORY_SLUG . '/get-inclusive-language-scores';
}
/**
* Returns the name of the analysis feature the ability depends on.
*
* @return string The analysis feature name.
*/
protected function get_feature_name(): string {
return Inclusive_Language_Analysis::NAME;
}
/**
* Returns the label of the ability.
*
* @return string The label.
*/
protected function get_label(): string {
return \__( 'Get Inclusive Language Scores', 'wordpress-seo' );
}
/**
* Returns the description of the ability.
*
* @return string The description.
*/
protected function get_description(): string {
return \__( 'Get the inclusive language scores for the most recently modified posts.', 'wordpress-seo' );
}
/**
* Returns the callback that executes the ability.
*
* @return array<int, object|string> The execute callback.
*/
protected function get_execute_callback(): array {
return [ $this->score_retriever, 'get_inclusive_language_scores' ];
}
}