Notify user when a reply goes into moderation
-
I had a look at the code in 2.6.1.
Lines 618 – 622 in functions.php in replies folder:
/** Reply Bad Words *******************************************************/ if ( ! bbp_check_for_moderation( $anonymous_data, $reply_author, $reply_title, $reply_content, true ) ) { bbp_add_error( 'bbp_reply_moderation', __( '<strong>ERROR</strong>: Your reply cannot be edited at this time.', 'bbpress' ) ); }
Notice that it makes use of the
bbp_add_error
call to notify the user? Well, look at lines 624 – 636:/** Reply Status **********************************************************/
// Maybe put into moderation if ( ! bbp_check_for_moderation( $anonymous_data, $reply_author, $reply_title, $reply_content ) ) { // Set post status to pending if public if ( bbp_get_public_status_id() === $reply->post_status ) { $reply_status = bbp_get_pending_status_id(); } // Use existing post_status } else { $reply_status = $reply->post_status; }
There does not appear to be any code to flag the user. Either way, if a “reply” is flagged as pending (for example, I insert 3 images) it just vanishes with no feedback to the user. This also happens here in this forum.
I confess I don’t know the code enough and could be barking up the wrong tree.
- You must be logged in to reply to this topic.