BP_REST_Members_Endpoint::delete_current_item( 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

(WP_REST_Request) (Required) Full details about the request.

Return

(WP_Error) WP_Error to inform it's not implemented.

Source

File: bp-members/classes/class-bp-rest-members-endpoint.php

	public function delete_current_item( $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

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.