WP_REST_Font_Collections_Controller::get_collection_params(): array

In this article

Retrieves the search params for the font collections.

Return

array Collection parameters.

Source

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 );
}

Hooks

apply_filters( ‘rest_font_collections_collection_params’, array $query_params )

Filters REST API collection parameters for the font collections controller.

Changelog

VersionDescription
6.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.