The decision about comment status upon posting is made by wp_allow_comment()
function.
There is a filter in it that can be used to change it accordingly. Basic form would look something like this (not tested):
add_filter( 'pre_comment_approved', function( $approved, $commentdata ) {
if ( ! empty( $commentdata['comment_author_url'] ) ) {
return 'spam';
}
return $approved;
}, 10, 2 );
This probably needs to be refined though, since it will probably interfere with users registered on site, who have URL set in profile.
Related Posts:
- Why do I get comment spam even with Akismet and Captcha?
- Removing the “Website” Field from Comments and Replies?
- How do we remove the H3 tag for the reply-title I.D
- How to deal with small scale comment spam on small commercial sites? [closed]
- What’s the easiest way to close comments on media/attachments?
- How to remove comment spam in WordPress
- How is comment spam received without a comments form?
- Success message in comment form
- Allow anonymous comments, but prevent spam [closed]
- Using filter to add additional fields to comment_form()
- Is there any advantage to emptying comment spam?
- Why do I get email notifications about comments that WordPress has already determined are spam?
- Number of External Links in Comments – Moderation Option
- Comments screen in backend, how to disable Quick Edit | Edit | History | Spam | for non admins
- How to add a div on comment fields / edited
- Strategies for coping with hyperagressive spambots?
- How to modify comments form using comment_form()?
- How can I automatically delete comments that contain chinese / russian signs?
- Comments view limited to 20 results – any way to increase to 50 or 100?
- Comment form problem with comment_author_url and HTML5 input placeholders
- Report spam button
- stackexchange-like submit comment window
- Bots posting comments on pages
- Changing the comments link produced by the get_comments_link() and get_comments_pagenum_link() functions
- How to make a secure blog that is completely private?
- WordPress custom form action url
- Auto delete comment if Contains
- All users/comments suspected as bot? [closed]
- After Submitting Comment Form Shows an Empy Page in WordPress
- How to override wp_insert_comment()
- Safely editing core files
- How to block comments and pings?
- Disable only the comment form/box itself?
- Batch approve comments
- reCaptcha doesnt appear in comment (manual or plugin)
- Make every comment go to the spam folder
- How to hide wordpress post comment form for specific role
- Anonymous spam comments when only registered users can comment
- Copy and Paste Password for Comments
- How t Remove Labels from comment Box
- comment form code redirect to wp_comments_post.php with blank page
- Need to output comment_form() function inside a foreach loop
- How add custom text under comment form
- Delete comments function
- Comment moderation
- Auto-deleting comments that trigger the blacklist
- approve,spam,trash etc. options are not coming on comments in admin panel
- Image Upload Form is Disabling Comment Addition
- Comment submission & navigation redirects to default language
- Reply to a specific comment?
- comments are going to spam
- How to hide the login / profile urls on top of comment box for a post
- How to hide and disable URL and email fields from comments?
- Add option to disable comments on a per posts basis?
- Check If comment author is registered
- How to allow the reply link to remain on the comment form after I have reached my 10 nested comment limit?
- Is there a hook for comment author link?
- How can I edit the email sent when a new comment is received?
- How to Block Access to Standard Login Flow and Comment Flow
- Prevent Contributor to show comment list
- where to modify get_comment_author_link()?
- Displaying comments with a walker: how to distinguish between parent and child comments
- How would I count the number of times a comment meta field’s value is in a post’s entire comments?
- Cannot get local avatars to show [closed]
- WordPress comments on users profile
- wordpress threaded comments – customize nested ul / how child ul is displayd
- identify and delete spam comments from 3000 pending comments
- Hide comments column in WordPress backend
- How unrequire comment text in wordpress post
- API Hook for After Commenting (for sharing on Facebook)
- Can comments by a logged-in user be displayed at the top?
- Show comments of a user post only when they are login
- How to get and use the the number of days since the last comment?
- How do I add class to an admin comment?
- Best way to tell if a comment is from a user?
- How to make comments private for commentor and post author
- Name of comment field differs on different sites
- WordPress Spam Comment Filter
- Which hook do I use to edit pending comment count on wordpress dashboard?
- comment button shows only logged in users wordpress
- Applying same style to all the comments on the page
- Customise Comment form
- stumped on add_action hook to delete_comment – any ideas?
- Avoiding calls to theme-compat
- Allow tags between shortcode in comments
- Delete/Spam Comment Button
- Who approved a comment, to show up in dashboard
- comment just attachment .. reply just text … can I do that?
- I have an odd field with a purple background, mentioning HTML-codes to use while leaving comments
- No comment Section but still got a Comment
- How to prevent users/authors from seing IP/email of new commentators?
- Why are my threaded comments not quite working? [closed]
- $post->comment_status always returns ‘closed’
- Order comments in admin by custom date
- How to replace anonymous comment form with a registration form on wordpress?
- Redirect first time comments
- Posting XML in comment section
- How to hold all comments for moderation, including author’s comments on own post
- WordPress error when sending comment
- Why default comment fields don’t show up?