BP_REST_Members_Endpoint::delete_current_item_permissions_check( WP_REST_Request $request )

Deleting the current user is not implemented into this endpoint.


Description Description

This action is specific to the User Settings endpoint.


Top ↑

Parameters Parameters

$request

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


Top ↑

Return Return

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


Source 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.', 'buddypress' ), $request->get_method() ),
			array(
				'status' => 405,
			)
		);
	}

Top ↑

Changelog Changelog

Changelog
Version Description
5.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.