How to enable reply on most-deeply-nested comments?

Here’s one suggestion using the comment_reply_link filter to change the reply links. Instead of using a regular expression to change it, I think it’s easier to just construct the links again. Here I use the same code as used in the get_comment_reply_link() core function, but I replace the $comment->comment_ID with $comment->comment_parent when the following condition … Read more

Exclude internal links from comment moderation?

The comment_max_links_url filter We can count the number of internal links in the comment’s content and subtract that from the total number of links found there ($num_links), with the help of the following filter inside the check_comment() core function: /** * Filters the number of links found in a comment * * @since 3.0.0 * … Read more

Delete all user comments

Here are a few functions that make use of WP_Comment_Query to pull the user’s Comments, then loop through to find any replies, and trash them all. $current_user = wp_get_current_user(); $deleteReplies = true; $force_delete = false; deleteUserComments ( $current_user->ID, $deleteReplies, $force_delete ); If you want to test this without permanently trashing the items, you can reset … Read more

Comments waiting but no comments found

Try to check on DB level. This SQL should give a list of all spam comments (which I assume skräpposter means): SELECT * FROM `wp_comments` WHERE `comment_approved` = ‘spam’; If the SQL gives 0 lines, the issue is with WordPress counting those comments, but in fact there are none. If the SQL gives a list, … Read more

Vanilla Forums as a replacement for WordPress comments?

The downside of using a forum system for comments, is that: the user probably has to register with the site to post a comment the user may not have single sign on ability through Vanilla you won’t be storing your comments in a system that can export them and import them into another commenting engine, … Read more

Using Disqus, how to stop storing comments in wp database?

The disqus plugin synchronizes your WordPress comments with the disqus system — that’s it’s main purpose (own your own comments, etc). You can get around this by ditching the built in WordPress commenting system altogether, modifying your theme templates (probably just comments.php) to use the stand-alone disqus javascript. <script type=”text/javascript”> var disqus_shortname=””; // required: replace … Read more

Allow guests comments on single post

That sounds like a useful feature. To get what you need you have to change three things: Add a checkbox to enable anonymous comments per post. Save the checkbox value together with the post. Filter the checks for the comment registration requirement on the post views to enable the comment form and on the actual … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)