WP_REST_Font_Collections_Controller::get_collection_params()publicWP 6.5.0

Retrieves the search params for the font collections.

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

Хуки из метода

Возвращает

Массив. Collection parameters.

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

$WP_REST_Font_Collections_Controller = new WP_REST_Font_Collections_Controller();
$WP_REST_Font_Collections_Controller->get_collection_params();

Список изменений

С версии 6.5.0 Введена.

Код WP_REST_Font_Collections_Controller::get_collection_params() WP 6.7.1

public function get_collection_params() {
	$query_params = parent::get_collection_params();

	$query_params['context'] = $this->get_context_param( array( 'default' => 'view' ) );

	unset( $query_params['search'] );

	/**
	 * Filters REST API collection parameters for the font collections controller.
	 *
	 * @since 6.5.0
	 *
	 * @param array $query_params JSON Schema-formatted collection parameters.
	 */
	return apply_filters( 'rest_font_collections_collection_params', $query_params );
}