Title: [Plugin: bbPressModeration] Hide pending posts
Last modified: August 20, 2016

---

# [Plugin: bbPressModeration] Hide pending posts

 *  Resolved [Prometheus Fire](https://wordpress.org/support/users/prometheus-fire/)
 * (@prometheus-fire)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-bbpressmoderation-hide-pending-posts/)
 * Since bbpress hides posts that are in the trash, would it be possible to hide
   also pending posts?
 * We’ve all seen this message: _This forum contains 13 topics (+ 2 hidden) and 
   36 replies,_
 * Would it be possible to add the pending posts to that so that we don’t get the
   big (Awaiting Moderation) tag on several posts displayed to all the users who
   visit?
 * [http://wordpress.org/extend/plugins/bbpressmoderation/](http://wordpress.org/extend/plugins/bbpressmoderation/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [ianhaycox](https://wordpress.org/support/users/ianhaycox/)
 * (@ianhaycox)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-bbpressmoderation-hide-pending-posts/#post-2529016)
 * I’ll have a look, but I suspect the handling of Trash and the hidden count is
   in bbPress core and there may not be any filters/actions to hook into.
 * Ian.
 *  [presspressperson](https://wordpress.org/support/users/presspressperson/)
 * (@presspressperson)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-bbpressmoderation-hide-pending-posts/#post-2529207)
 * I used css to hide topics with the following rule:
 * `tr.topic.status-pending { display:none; }`
 * You can do the same thing with posts, but unfortunately, the post header will
   remain since it’s a separate tr that doesn’t include the class “status-pending.”
 * `tr.reply.status-pending { display:none; }`
 * You could probably use ajax to grab the tr just before each tr.reply.status-pending
   and give it an inline style of display:none; but that is not my area of expertise.
 * Also, your # of posts and topics will be incorrect (as in “_Viewing 2 posts –
   1 through 2 (of 2 total)_“) unless you update the logic. I hide those too because
   I feel like they just add clutter to the page, and most of those numbers are 
   already in the “notice” section. You can do that easily with css as well:
 * `div.bbp-pagination-count { display:none; }`
 * If your forum is paged your pages might end up being a few topics/replies short
   of the max per page, and you could end up with empty pages since the pagination
   is still counting the hidden topics/replies. Setting the topics/replies per page#
   to something high and staying on top of approval/deletion will minimize that.
 * The method isn’t perfect, but it gets the job done quick and easy without any
   functionality issues.
 * I’d be interested to hear a back end solution to this. In my humble opinion, 
   showing pending topics almost defeats the purpose since you can still read the
   name of the topic.
 *  [Shivanand Sharma](https://wordpress.org/support/users/varun21/)
 * (@varun21)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-bbpressmoderation-hide-pending-posts/#post-2529222)
 * At line 150 (version 1.4) try this: should only make pending visible for moderators
   and above.
 *     ```
       function query($bbp) {
       		if (!bbp_is_query_name( 'bbp_widget' ) && current_user_can('moderate')) {
       			$bbp['post_status'] .= ',pending';
       		}
       		return $bbp;
       	}
       ```
   
 *  [martinofmoscow](https://wordpress.org/support/users/martinofmoscow/)
 * (@martinofmoscow)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-bbpressmoderation-hide-pending-posts/#post-2529233)
 * Thanks [@varun21](https://wordpress.org/support/users/varun21/) for that, it 
   works well. But shouldn’t this be the standard behaviour? Isn’t the entire point
   of moderation that posts AREN’T VISIBLE until moderated?

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘[Plugin: bbPressModeration] Hide pending posts’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/bbpressmoderation.svg)
 * [bbPress Moderation](https://wordpress.org/plugins/bbpressmoderation/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bbpressmoderation/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bbpressmoderation/)
 * [Active Topics](https://wordpress.org/support/plugin/bbpressmoderation/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bbpressmoderation/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bbpressmoderation/reviews/)

 * 4 replies
 * 5 participants
 * Last reply from: [martinofmoscow](https://wordpress.org/support/users/martinofmoscow/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/plugin-bbpressmoderation-hide-pending-posts/#post-2529233)
 * Status: resolved