Yoast\WP\SEO\Abilities\User_Interface\Abilities
Update_Term_SEO_Data_Ability::get_update_term_seo_data_input_schema
Returns the input schema for updating a term's SEO data (write path).
Метод класса: Update_Term_SEO_Data_Ability{}
Хуков нет.
Возвращает
array<string, mixed>. The input schema.
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_update_term_seo_data_input_schema(): array;
Код Update_Term_SEO_Data_Ability::get_update_term_seo_data_input_schema() Update Term SEO Data Ability::get update term seo data input schema Yoast 28.9
private function get_update_term_seo_data_input_schema(): array {
return [
'type' => 'object',
'additionalProperties' => false,
'properties' => [
'term_id' => [
'type' => 'integer',
'description' => \__( 'The ID of the term to update.', 'wordpress-seo' ),
'minimum' => 1,
],
'permalink' => [
'type' => 'string',
'description' => \__( 'The permalink (URL) of the term archive to update.', 'wordpress-seo' ),
],
'seo_title' => $this->ai_generate_field_schema( \__( 'SEO title', 'wordpress-seo' ) ),
'meta_description' => $this->ai_generate_field_schema( \__( 'meta description', 'wordpress-seo' ) ),
'canonical' => [
'type' => [ 'string', 'null' ],
'description' => \__( 'The custom canonical URL for the term archive. Use null or an empty string to remove it and fall back to the default canonical.', 'wordpress-seo' ),
],
'is_cornerstone' => [
'type' => 'boolean',
'description' => \__( 'Whether the term is marked as cornerstone content.', 'wordpress-seo' ),
],
'noindex' => [
'type' => [ 'boolean', 'null' ],
'description' => \__( 'Whether search engines should be told not to index this term archive. true sets noindex (the archive is excluded from search results); false forces the archive to be indexed; null clears the setting and falls back to the taxonomy default.', 'wordpress-seo' ),
],
'open_graph_title' => $this->ai_generate_field_schema( \__( 'Open Graph title', 'wordpress-seo' ) ),
'open_graph_description' => $this->ai_generate_field_schema( \__( 'Open Graph description', 'wordpress-seo' ) ),
'twitter_title' => $this->ai_generate_field_schema( \__( 'X title', 'wordpress-seo' ) ),
'twitter_description' => $this->ai_generate_field_schema( \__( 'X description', 'wordpress-seo' ) ),
],
];
}