Yoast\WP\SEO\Dashboard\Domain\Score_Groups\SEO_Score_Groups
Good_SEO_Score_Group{}
This class describes a good SEO score group.
Хуков нет.
Использование
$Good_SEO_Score_Group = new Good_SEO_Score_Group(); // use class methods
Методы
- public get_filter_value()
- public get_max_score()
- public get_min_score()
- public get_name()
- public get_position()
Код Good_SEO_Score_Group{} Good SEO Score Group{} Yoast 24.4
class Good_SEO_Score_Group extends Abstract_SEO_Score_Group { /** * Gets the name of the SEO score group. * * @return string The name of the SEO score group. */ public function get_name(): string { return 'good'; } /** * Gets the value of the SEO score group that is used when filtering on the posts page. * * @return string The name of the SEO score group that is used when filtering on the posts page. */ public function get_filter_value(): string { return 'good'; } /** * Gets the position of the SEO score group. * * @return int The position of the SEO score group. */ public function get_position(): int { return 0; } /** * Gets the minimum score of the SEO score group. * * @return int The minimum score of the SEO score group. */ public function get_min_score(): ?int { return 71; } /** * Gets the maximum score of the SEO score group. * * @return int The maximum score of the SEO score group. */ public function get_max_score(): ?int { return 100; } }