Yoast\WP\SEO\Abilities\User_Interface\Abilities

Get_Term_SEO_Data_Ability::get_term_identifier_input_schema │ private │ Yoast 1.0

Returns the input schema for identifying a term (read path).

Метод класса: Get_Term_SEO_Data_Ability{}

Хуков нет.

Возвращает

array<string, mixed>. The input schema.

Использование

// private - только в коде основоного (родительского) класса
$result = $this->get_term_identifier_input_schema(): array;

Код Get_Term_SEO_Data_Ability::get_term_identifier_input_schema() Yoast 28.9

private function get_term_identifier_input_schema(): array {
	return [
		'type'                 => 'object',
		'additionalProperties' => false,
		'properties'           => [
			'term_id'   => [
				'type'        => 'integer',
				'description' => \__( 'The ID of the term to retrieve.', 'wordpress-seo' ),
				'minimum'     => 1,
			],
			'permalink' => [
				'type'        => 'string',
				'description' => \__( 'The permalink (URL) of the term archive to retrieve.', 'wordpress-seo' ),
			],
		],
	];
}