BP_REST_Members_Endpoint::delete_current_item_permissions_check( WP_REST_Request $request )
Deleting the current user is not implemented into this endpoint.
Description
This action is specific to the User Settings endpoint.
Parameters
- $request
-
(Required) Full details about the request.
Return
(WP_Error) WP_Error object to inform it's not implemented.
Source
File: bp-members/classes/class-bp-rest-members-endpoint.php
public function delete_current_item_permissions_check( $request ) {
return new WP_Error(
'bp_rest_invalid_method',
/* translators: %s: transport method name */
sprintf( __( '\'%s\' Transport Method not implemented.', 'buddyboss' ), $request->get_method() ),
array(
'status' => 405,
)
);
}
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.