Hold comments for moderation only if user is not logged in

Is there any way to allow logged-in users to post comments without them being held for moderation, while requiring that any comment from anonymous users be approved? I have developed a system for users who are members of our organization to log in automatically with their LDAP accounts, and would like for any of them to be able to comment without their comments being held for moderation. However, I want all anonymous third-party comments to be held for moderation. I …
Category: Web

Who approved a comment, to show up in dashboard

About 10 years ago (!) this message was posted Find out which moderator approved comment? That perfectly works but I would like the "Approved by [---]" to show up in the "comments" of the dashboard for all who have rights to moderate comments. Any suggestion? Thank you!
Category: Web

BuddyBoss (BuddyPress / bbPress) moderation filters not doing anything

I'm trying to prevent moderation of forum posts for users with the 'moderate' capability OR an active 'premium' membership plan (WC Memberships). I want replies from such authors to not be subject to our moderation rules (number of links, blocklisted words, etc.). I've tried using the following filters with no luck: add_filter( 'bbp_bypass_check_for_moderation', 'bbp_bypass_if_user_can_moderate', 10, 4 ); function bbp_bypass_if_user_can_moderate( $anonymous_data, $author_id, $title, $content ){ if( user_can( $author_id, 'moderate' ) || wc_memberships_is_user_active_member( $author_id, 'premium' ) ){ return true; } else { …
Category: Web

how can i allow users to view their own pending posts in a front-end page

i want to allow users to view their own pending posts in a front end page but when i access the links created for pending post in the database the links doesn't work until the post is approved If I access the post GUID the one where the status is "publish" the link works, but the the one with the status "pending" does not. I want to know what is the difference between a pending post and a published one …
Category: Web

Why do comment moderators need to have all create/edit/delete toboth posts and pages?

I struggled quitea bit to be able to set up my moderator account. Until I allowed all posts and pages capabilities and now the can finally moderate comments. I didn't deactivate one by one precisely to see which would remove this. Nevertheless I couldn't find any documentation anywhere about this. Onyl when I found another plugin review...
Category: Web

Wordpress comments - how to check if comment still needs to be approved?

I created a comments.php template and which contains the following code: <div class="amb-single-comments amb-container-parent override"> <div class="amb-single-comments-container amb-container-child override"> <div class="amb-single-comments-wrapper-centered override"> <?php if ( post_password_required() ) { return; } ?> <?php if ( have_comments() ) : ?> <!-- Comments header --> <h3 class="amb-comments-title"><?php echo esc_html( get_theme_mod('amb_single_styleparts_comments_title', 'Comments') ); ?></h3> <!-- Comments list --> <ul class="amb-comments-list"> <?php wp_list_comments( [ 'reverse_top_level' => true, //Newest first 'callback' => 'amb_comments_output', 'per_page' => '200', 'max_depth' => 20 ] ); ?> </ul> <?php endif; ?> …
Category: Web

How to Moderate Edits to User Profiles?

I would like to moderate WordPress users’ edits to their own profiles. As I understand it, the default would be for the profile changes to go online immediately. Instead, I’d like to leave the older version online, until an Admin has approved the edit. I've checked several of the moderation plugins (e.g. Revisionary), and the user directory plugins, but they only seem to moderate the creation of users, not their revision. How could the revisions be moderated?
Category: Web

Allow contributors to moderate comments comments on posts they write

I run a multi-author wordpress site where we have a large number of contributors that can write articles, which are published after they are reviewed by an editor. (This is all standard wordpress behaviour). What I would like to do is give the contributors the ability to moderate comments on the posts which they write, but not on posts written by other people. I haven't found a way of doing this, either with a code snippet or plugin and am …
Category: Web

Allowing logged in users to comment without moderation across a multisite installation

I currently do web admin for an internet community based on BuddyPress and Multi Site, and use the Comment author must have a previously approved comment setting to make it easier for users to comment and not be moderated. All users are vetted before their accounts are created so I know we don't have spambots. However it does not quite behave as I wish it to and I wonder if there is a way to achieve what I want. Ideally …
Category: Web

Reject Comments Based on Author Email

I know that I can't guarantee emails are valid without signups, but I noticed a problematic user wanting to troll was using @example.com email addresses. How might I maintain a blacklist of such domains for comment authors? Specifically, how might I reject comments immediately if such a domain is used, notifying the user as such? A wp_die('you must use a real email'); will likely do the trick, but which filter/when should the check be made?
Category: Web

How can I manage all multisite pending comments in one place?

I have a WP multisite installation with a large number of sites. Thanks to auto-approving comments from registered users and invite only registration we no longer need to receive email notifications for comments pending moderation. This is good and intended behaviour, but it has introduced a further issue. Some of the sites are accumulating large numbers of 'pending' comments, because its too much hassle for me to regularly visit each of the subsites specific admin page and manage their comments. …
Category: Web

Sending comment notifications to different recipients depending on taxonomy terms

I try to add a filter to the comment notification recipients function, for adding different recipients/moderators depending on the taxonomy terms of each post. This is my code so far, but it doesn't work: function se_comment_moderation_recipients( $emails, $comment_id ) { $emails = array( '[email protected]' ); if ( has_term('myterm','mytaxonomy') ) return $emails; } add_filter( 'comment_moderation_recipients', 'se_comment_moderation_recipients', 11, 2 ); add_filter( 'comment_notification_recipients', 'se_comment_moderation_recipients', 11, 2 ); Any help would be really really appreciate.
Category: Web

How to prevent comment moderation flood?

I'm a OS administrator rather than a WP administrator, and i found that one WordPress installation sends an email every single time a spammer tries to post a comment. This is flooding the email daemon and is almost as bad as allowing spam. I think we could disable comment moderation notification emails, but we don't want to do that. Is there a way that WordPress may limit the rate at which sends email moderation notifications? (Like, for example, one per …
Category: Web

Can I allow registered users to comment without being logged in or having to be approved?

I am assisting a friend by admining a website for his podcast (http://www.castlereport.us). I've had a little bit of experience with WordPress, but have no coding and customization skills. Only my friend and I have user accounts. His wife uses his account to post the new podcast episodes for him and I only log in to do occasional maintenance. I have the discussion settings set to allow people to comment without moderation and to not require users to be registered …
Category: Web

Exclude internal links from comment moderation?

The first option on Settings - Discussion - Comment Moderation is: Hold a comment in the queue if it contains "1" or more links. (A common characteristic of comment spam is a large number of hyperlinks.) That is useful but it would be much better for me and my visitors if it ignored internal links. Many times users reference other articles of the site and that is a good thing. But they get caught on moderation queue which is annoying …
Category: Web

How to disallow participant from publishing topics(bbpress)?

OK, I am really stuck on this. I tried many things and yet nothing works. I have BBpress install and running and want to disallow users(Participant Role) from publishing TOPICS. Every time when user add the topic, it must have to display under pending status but they can publish replies without any moderation. I tried BBpress Moderation plugin but its adding replies in pending status. Even after unchecking the box which says Always moderate replies. I Tried to change the …
Category: Web

Comment moderation

I am using a plugin (dwqa) that overrides wordpress' Settings->Discussion options (eg: I select "Comment author must have a previously approved comment" but comments are approved regardless). If I decide to write the code for "Comment author must have a previously approved comment" myself, will I be missing out on other built-in protection that WordPress offers on comments? I would like to still get all possible protection from spam that WordPress offers. If the Settings->Discussion options don't work, does that …
Category: Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.