BP_REST_XProfile_Types_Endpoint::get_collection_params()
Get the query params for the XProfile types.
Description
Return
(array)
Source
File: bp-xprofile/classes/class-bp-rest-xprofile-types-endpoint.php
public function get_collection_params() {
$params = parent::get_collection_params();
$params['context']['default'] = 'view';
unset( $params['page'] );
unset( $params['per_page'] );
unset( $params['search'] );
/**
* Filters the collection query params.
*
* @param array $params Query params.
*/
return apply_filters( 'bp_rest_xprofile_types_collection_params', $params );
}
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.