Yoast\WP\SEO\Abilities\User_Interface
SEO_Data_Output_Schema::score
Returns the property of an analysis score.
Метод класса: SEO_Data_Output_Schema{}
Хуков нет.
Возвращает
array<string, mixed>. The property.
Использование
// private - только в коде основоного (родительского) класса $result = $this->score( $analysis ): array;
- $analysis(строка) (обязательный)
- The human-readable analysis name.
Код SEO_Data_Output_Schema::score() SEO Data Output Schema::score Yoast 28.9
private function score( string $analysis ): array {
return [
'type' => 'string',
'enum' => [ 'na', 'bad', 'ok', 'good' ],
'description' => \sprintf(
/* translators: %s expands to the name of the analysis, e.g. "SEO analysis". */
\__( 'The result of the %s as calculated at the last save in the editor.', 'wordpress-seo' ),
$analysis,
),
];
}