WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WP_REST_Controller::get_collection_params() WP 4.7.0

Retrieves the query params for the collections.

Это метод класса: WP_REST_Controller

Хуков нет.

Возвращает

Массив. Query parameters for the collection.

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

$WP_REST_Controller = new WP_REST_Controller();
$var = $WP_REST_Controller->get_collection_params();

Код WP REST Controller::get collection params: wp-includes/rest-api/endpoints/class-wp-rest-controller.php WP 5.2.2

<?php
public function get_collection_params() {
	return array(
		'context'  => $this->get_context_param(),
		'page'     => array(
			'description'       => __( 'Current page of the collection.' ),
			'type'              => 'integer',
			'default'           => 1,
			'sanitize_callback' => 'absint',
			'validate_callback' => 'rest_validate_request_arg',
			'minimum'           => 1,
		),
		'per_page' => array(
			'description'       => __( 'Maximum number of items to be returned in result set.' ),
			'type'              => 'integer',
			'default'           => 10,
			'minimum'           => 1,
			'maximum'           => 100,
			'sanitize_callback' => 'absint',
			'validate_callback' => 'rest_validate_request_arg',
		),
		'search'   => array(
			'description'       => __( 'Limit results to those matching a string.' ),
			'type'              => 'string',
			'sanitize_callback' => 'sanitize_text_field',
			'validate_callback' => 'rest_validate_request_arg',
		),
	);
}