BP_REST_Account_Settings_Endpoint::get_collection_params()
Get the query params for the Account Settings collections.
Description
Return
(array)
Source
File: bp-settings/classes/class-bp-rest-account-settings-endpoint.php
public function get_collection_params() {
$params = parent::get_collection_params();
$params['context']['default'] = 'view';
// Remove the search argument.
unset( $params['search'] );
unset( $params['page'] );
unset( $params['per_page'] );
/**
* Filters the collection query params.
*
* @param array $params Query params.
*/
return apply_filters( 'bp_rest_account_settings_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.