Yoast\WP\SEO\Abilities\User_Interface

Abilities_Integration::get_post_identifier_input_schemaprivateYoast 1.0

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

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

Хуков нет.

Возвращает

Массив<Строку,. mixed> The input schema.

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

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

Код Abilities_Integration::get_post_identifier_input_schema() Yoast 28.2

private function get_post_identifier_input_schema(): array {
	return [
		'type'                 => 'object',
		'additionalProperties' => false,
		'properties'           => [
			'post_id'   => [
				'type'        => 'integer',
				'description' => \__( 'The ID of the post to retrieve.', 'wordpress-seo' ),
				'minimum'     => 1,
			],
			'permalink' => [
				'type'        => 'string',
				'description' => \__( 'The permalink (URL) of the post to retrieve.', 'wordpress-seo' ),
			],
			'title'     => [
				'type'        => 'string',
				'description' => \__( 'Keywords to search for in post titles. Provide a comma-separated list to search for several titles at once; each value is matched as a whole phrase against the post title, and a post matching any value is returned. At most 10 phrases are used per request; any beyond the first 10 are ignored. Results are paginated to 10 entities per page; see the page parameter.', 'wordpress-seo' ),
			],
			'page'      => [
				'type'        => 'integer',
				'description' => \__( 'The page of title-search results to return, 1-based and defaulting to 1. Matches are ordered most recently modified first, so request a later page to reach older matches. An empty result means there are no further pages. Only applies to a title search.', 'wordpress-seo' ),
				'minimum'     => 1,
				'default'     => 1,
			],
		],
	];
}