bbp_is_reply_published( int $reply_id )
Is the reply not spam or deleted?
Description
Parameters
- $reply_id
-
(Optional) Topic id
Return
(bool) True if published, false if not.
Source
File: bp-forums/replies/template.php
function bbp_is_reply_published( $reply_id = 0 ) { $reply_status = bbp_get_reply_status( bbp_get_reply_id( $reply_id ) ) === bbp_get_public_status_id(); return (bool) apply_filters( 'bbp_is_reply_published', (bool) $reply_status, $reply_id ); }
Changelog
Version | Description |
---|---|
bbPress (r3496) | 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.