Is there any advantage to emptying comment spam?

There is definitely a performance advantage in keeping your comment spam to a minimum. If you have a lot of comments, the query time can get pretty out of control. To make it easier, you should install Akismet if you haven’t already. Akismet will automatically detect spam comments and move them to WordPress spam section. … Read more

How can I edit the email sent when a new comment is received?

The comment_notification_text filter is in wp-includes/pluggable.php in the wp_notify_postauthor function. You can copy and paste the $notify_message stuff and edit out what you don’t want. function wpd_comment_notification_text( $notify_message, $comment_id ){ // get the current comment and post data $comment = get_comment( $comment_id ); $post = get_post( $comment->comment_post_ID ); // don’t modify trackbacks or pingbacks if( … Read more

Whitelisting Commenters

In Settings > Discussion Uncheck An administrator must always approve the comment Check Comment author must have a previously approved comment This way comments from people (identified by combination of name, email and site) who have previously approved comments will not require moderation. Rest of comments will.

Editing the Comment Reply Link

functions.php: function remove_nofollow($link, $args, $comment, $post){ return str_replace(“rel=”nofollow””, “”, $link); } add_filter(‘comment_reply_link’, ‘remove_nofollow’, 420, 4);

Getting the comment number relative to all the post’s comments

Try the following custom Comment Walker class. The walker keep tracks for print index in a global variable named $current_comment_print_index; which is intialized in the paged_walk function. You can print global variable $current_comment_print_index to show the current printed comment number. <?php /* Plugin Name: Comment Count Walker for WPSE 20527 Author: Hameedullah Khan Author URI: … Read more