Yoast\WP\SEO\Abilities\User_Interface\Abilities
Abstract_Score_Ability::get_score_output_schema
Returns the score output schema, including the title property.
Метод класса: Abstract_Score_Ability{}
Хуков нет.
Возвращает
array<string, mixed>. The score output schema.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_score_output_schema(): array;
Код Abstract_Score_Ability::get_score_output_schema() Abstract Score Ability::get score output schema Yoast 28.7
protected function get_score_output_schema(): array {
return [
'type' => 'object',
'properties' => [
'title' => [
'type' => 'string',
'description' => \__( 'The post title.', 'wordpress-seo' ),
],
'score' => [
'type' => 'string',
'enum' => [ 'na', 'bad', 'ok', 'good' ],
'description' => \__( 'The score slug.', 'wordpress-seo' ),
],
'label' => [
'type' => 'string',
'description' => \__( 'A human-readable label for the score.', 'wordpress-seo' ),
],
],
];
}