WP_REST_Icon_Collections_Controller::get_collection_params(): array

In this article

Retrieves the query params for the icon collections collection.

Return

array Collection parameters.

Source

public function get_collection_params() {
	$query_params                       = parent::get_collection_params();
	$query_params['context']['default'] = 'view';
	return $query_params;
}

Changelog

VersionDescription
7.1.0Introduced.

User Contributed Notes

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