How do I redirect users after submitting a topic for moderation?

Modify the file “form-topic.php” (located in “/wp-content/plugins/bbpress/templates/default/bbpress/form-topic.php”): 32 <form id=”new-post” name=”new-post” method=”post” action=”<?php the_permalink(); ?>”> Change it to: 32 <form id=”new-post” name=”new-post” method=”post” action=”<?php echo the_permalink() . “?redirect_to=/question-awaiting-moderation/”; ?>”> Upload this modified file to: “/wp-content/themes/YOUR_THEME/bbpress/form-topic.php” Do the same for the replies if you are moderating those (form-reply.php).

How to disallow participant from publishing topics(bbpress)?

OK I got a quick Solution. I enable the plugin BBpress Moderation and change the following code in /wp-content/plugins/bbpressmoderation/bbpressmoderation.php FROM: /** * Before inserting a new topic/reply mark * this as ‘pending’ depending on settings * * @param array $data – new topic/reply data */ function pre_insert($data) { global $wpdb; if (@$data[‘post_status’]==’spam’) return $data; // … Read more

Comment Moderation and CDN Caching

Figured it out. Looking at wp-comments-post.php there is a filter called comment_post_redirect which I used to check if the comment was approved and then added a query string to the URL. So easy. //A query string needs to be added when redirecting back to the post after a comment is posted and not approved. This … Read more

How to moderate (manually approve) comments of a specific (registered) User

If you are comfortable with coding, you could try a custom filter based on the WP_Comment object. Perhaps something like the following: function wpse_wp_insert_comment($id, $comment) { // Add your user_id, or use email address instead. if ( empty($comment->comment_author ) || $comment->user_id!== 1 ) wp_set_comment_status( $comment, ‘hold’ ); } add_action(‘wp_insert_comment’, ‘wpse_wp_insert_comment’, 10, 2); -Or … // … Read more

Author can only see own post comment and can moderate

The default author role does not have the moderate_comments capabilities so you need to add that capability to the author role, so add this to your plugin: function add_theme_caps() { $role = get_role( ‘author’ ); // gets the author role $role->add_cap( ‘moderate_comments’ ); // would allow the author to moderate comments } add_action( ‘admin_init’, ‘add_theme_caps’);