bbp_is_reply_trash( int $reply_id )

Is the reply trashed?

Description

Parameters

$reply_id

(Optional) Topic id

Return

(bool) True if spam, false if not.

Source

File: bp-forums/replies/template.php

function bbp_is_reply_trash( $reply_id = 0 ) {
	$reply_status = bbp_get_reply_status( bbp_get_reply_id( $reply_id ) ) === bbp_get_trash_status_id();
	return (bool) apply_filters( 'bbp_is_reply_trash', (bool) $reply_status, $reply_id );
}

Changelog

Changelog
Version Description
bbPress (r2884) 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.