WP_REST_Global_Styles_Revisions_Controller::get_collection_params(): array

In this article

Retrieves the query params for collections.

Description

Removes params that are not supported by global styles revisions.

Return

array Collection parameters.

Source

public function get_collection_params() {
	$query_params = parent::get_collection_params();
	unset(
		$query_params['exclude'],
		$query_params['include'],
		$query_params['search'],
		$query_params['order'],
		$query_params['orderby']
	);
	return $query_params;
}

Changelog

VersionDescription
6.6.0Introduced.

User Contributed Notes

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