Yoast\WP\SEO\Abilities\User_Interface\Abilities
Get_SEO_Scores_Ability::get_output_schema
Returns the output schema: an array of score items, each including the focus keyphrase.
Метод класса: Get_SEO_Scores_Ability{}
Хуков нет.
Возвращает
array<string, mixed>. The output schema.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_output_schema(): array;
Код Get_SEO_Scores_Ability::get_output_schema() Get SEO Scores Ability::get output schema Yoast 28.9
protected function get_output_schema(): array {
$output_schema = $this->get_score_output_schema();
$output_schema['properties']['focus_keyphrase'] = [
'type' => [ 'string', 'null' ],
'description' => \__( 'The focus keyphrase for the post, or null if not set.', 'wordpress-seo' ),
];
return $this->wrap_in_array_schema( $output_schema );
}