BP_REST_Reply_Endpoint::get_reply_action_states( integer $reply_id )

Get Action states for the reply.

Description

Parameters

$reply_id

(Required) Reply ID.

Return

(array|void)

Source

File: bp-forums/classes/class-bp-rest-reply-endpoint.php

	protected function get_reply_action_states( $reply_id ) {
		if ( empty( $reply_id ) ) {
			return;
		}

		return array(
			'spam'  => ( ! empty( bbp_is_reply_spam( $reply_id ) ) ? bbp_is_reply_spam( $reply_id ) : false ),
			'trash' => ( ! empty( bbp_is_reply_trash( $reply_id ) ) ? bbp_is_reply_trash( $reply_id ) : false ),
		);

	}

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.