Title: bbPress &#8211; Moderation Tools
Last modified: December 6, 2017

---

# bbPress – Moderation Tools

 *  Resolved [semajcherlagne](https://wordpress.org/support/users/semajcherlagne/)
 * (@semajcherlagne)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/bbpress-moderation-tools/)
 * First off, I must say I have enjoyed implementing your BBPNNS plugin with our
   bbpress message board! We use bbpress – Moderation Tools ([https://wordpress.org/plugins/moderation-tools-for-bbpress/](https://wordpress.org/plugins/moderation-tools-for-bbpress/)),
   which is an updated plugin for bbpress moderation. As it currently stands, if
   an Admin or Moderator posts a new Topic on the front-end, notifications are sent
   out via BBPNNS just fine. However, the issue we currently face is this: When 
   a standard user posts a new Topic, it is properly held for moderation. When a
   moderator clicks “Approve” on the front-end of the Message Board (a feature of
   BBPMT), no notification e-mails are sent out. I have to manually go through the
   admin panel and “Update” the approved new topics with “Send Notifications” checked
   in order for the BBPNNS notifications to go out. Is there a way to send notifications
   automatically upon approval of a new topic by a moderator? Thanks!

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

 *  Plugin Author [useStrict](https://wordpress.org/support/users/usestrict/)
 * (@usestrict)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/bbpress-moderation-tools/#post-9757772)
 * Hi [@semajcherlagne](https://wordpress.org/support/users/semajcherlagne/),
 * I have a premium add-on that acts as a bridge between bbpnns and bbpress-moderation.
   I don’t know if it’ll work with moderation-tools-for-bbpress, though. I’ll have
   a look at their code and let you know.
 * Cheers,
    Vinny
 *  Plugin Author [useStrict](https://wordpress.org/support/users/usestrict/)
 * (@usestrict)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/bbpress-moderation-tools/#post-9761170)
 * The problem is that the moderation plugin does not call the `bbp_new_post` and`
   bbp_new_reply` actions after approving.
 * It does call its own `bbp_approved_topic` and `bbp_approved_reply` actions, so
   you can hook into those. Try the code below in your `functions.php`. But note
   that I haven’t tested it other than for syntax errors.
 *     ```
       function my_trigger_bbpnns_new_topic( $topic_id )
       {
       	$bbpnns   = bbPress_Notify_NoSpam::bootstrap();
       	$do_bg    = get_option( 'bbpress_notify_newtopic_background' );
       	$forum_id = bbp_get_topic_forum_id( $topic_id );
   
       	if ( $do_bg )
       	{
       		$bbpnns->bg_notify_new_topic( $topic_id, $forum_id );
       	}
       	else 
       	{
       		$bbpnns->notify_new_topic( $topic_id, $forum_id );
       	}
   
       }
       add_action( 'bbp_approved_topic', 'my_trigger_bbpnns_new_topic', 10, 1 );
   
       function my_trigger_bbpnns_new_reply( $reply_id )
       {
       	$bbpnns   = bbPress_Notify_NoSpam::bootstrap();
       	$do_bg    = get_option( 'bbpress_notify_newreply_background' );
       	$topic_id = bbp_get_reply_topic_id( $reply_id );
       	$forum_id = bbp_get_topic_forum_id( $topic_id );
   
       	if ( $do_bg )
       	{
       		$bbpnns->bg_notify_new_reply( $reply_id, $topic_id, $forum_id );
       	}
       	else
       	{
       		$bbpnns->notify_new_reply( $reply_id, $topic_id, $forum_id );
       	}
   
       }
       add_action( 'bbp_approved_reply', 'my_trigger_bbpnns_new_reply', 10, 1 );
       ```
   
 * Cheers,
    Vinny
 *  Plugin Author [useStrict](https://wordpress.org/support/users/usestrict/)
 * (@usestrict)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/bbpress-moderation-tools/#post-9767398)
 * Hi [@semajcherlagne](https://wordpress.org/support/users/semajcherlagne/),
 * Did you try it? Did it work? Can I close this ticket as resolved?
 *  Thread Starter [semajcherlagne](https://wordpress.org/support/users/semajcherlagne/)
 * (@semajcherlagne)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/bbpress-moderation-tools/#post-9769911)
 * [@vinny](https://wordpress.org/support/users/vinny/) – Wow, that piece of code
   worked like a charm. Thank you so much! You can close this ticket as excellently
   resolved. Thanks again!!
 *  Plugin Author [useStrict](https://wordpress.org/support/users/usestrict/)
 * (@usestrict)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/bbpress-moderation-tools/#post-9771182)
 * Glad to hear that!
 * Cheers,
    Vinny

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

The topic ‘bbPress – Moderation Tools’ is closed to new replies.

 * ![](https://ps.w.org/bbpress-notify-nospam/assets/icon-256x256.png?rev=3449133)
 * [bbPress Notify (No-Spam)](https://wordpress.org/plugins/bbpress-notify-nospam/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bbpress-notify-nospam/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bbpress-notify-nospam/)
 * [Active Topics](https://wordpress.org/support/plugin/bbpress-notify-nospam/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bbpress-notify-nospam/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bbpress-notify-nospam/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [useStrict](https://wordpress.org/support/users/usestrict/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/bbpress-moderation-tools/#post-9771182)
 * Status: resolved