BP_REST_Messages_Actions_Endpoint::rest_delete_messages( integer $thread_id, boolen $value )

Delete thread messages by logged in users.

Description

Parameters

$thread_id

(Required) ID of the Messages Thread.

$value

(Required) Action value.

Return

(bool|void)

Source

File: bp-messages/classes/class-bp-rest-messages-actions-endpoint.php

	protected function rest_delete_messages( $thread_id, $value ) {

		if ( empty( $value ) ) {
			return;
		}

		return messages_delete_thread( $thread_id );
	}

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.