BP_REST_Settings_Endpoint::get_collection_params()

Get the query params for collections.

Description

Return

(array)

Source

File: bp-core/classes/class-bp-rest-settings-endpoint.php

	public function get_collection_params() {
		$params['context']['default'] = 'view';

		/**
		 * Filters the collection query params.
		 *
		 * @param array $params Query params.
		 */
		return apply_filters( 'bp_rest_settings_collection_params', $params );
	}

Changelog

Changelog
Version Description
0.1.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.