bbp_is_reply_trash( int $reply_id )
Is the reply trashed?
Description Description
Parameters Parameters
- $reply_id
-
(Optional) Topic id
Return Return
(bool) True if spam, false if not.
Source Source
File: includes/replies/template.php
function bbp_is_reply_trash( $reply_id = 0 ) { $reply_id = bbp_get_reply_id( $reply_id ); $status = bbp_get_trash_status_id(); $reply_status = bbp_get_reply_status( $reply_id ) === $status; // Filter & return return (bool) apply_filters( 'bbp_is_reply_trash', (bool) $reply_status, $reply_id ); }
Changelog Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |