#1787 closed enhancement (fixed)
New filters for bbp_is_topic_XXXX
| Reported by: | MZAWeb | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.1 |
| Component: | API - Actions/Filters | Version: | 2.0 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
bbp_is_reply_published, for instance, has a filter in place:
function bbp_is_reply_published( $reply_id = 0 ) {
$reply_status = bbp_get_reply_status( bbp_get_reply_id( $reply_id ) );
return apply_filters( 'bbp_is_reply_published', bbp_get_public_status_id() == $reply_status, $reply_id );
}
But bbp_is_topic_published doesn't:
function bbp_is_topic_published( $topic_id = 0 ) {
$topic_status = bbp_get_topic_status( bbp_get_topic_id( $topic_id ) );
return bbp_get_public_status_id() == $topic_status;
}
Attachments (2)
Change History (8)
#2
@
15 years ago
- Summary New filter for bbp_is_topic_published → New filters for bbp_is_topic_XXXX
Added filters also for:
function bbp_is_topic_closed function bbp_is_topic_published function bbp_is_topic_spam function bbp_is_topic_trash function bbp_is_topic_anonymous
Note:
See TracTickets
for help on using tickets.
Filter added