How to show Disqus comment count number only without text?

Not sure how it’ll behave with Disqus, but try the following filter: add_filter( ‘comments_number’, ‘comments_text_wpse_87886’, 10, 2 ); function comments_text_wpse_87886 ( $output, $number ) { return $number; } The original return is $output, and instead we are returning only the number of comments. That filter happens in the following core function, reproduced here if you … Read more

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);

Is there a hook for comment author link?

The other two answers probably answer your question, but here’s a way look at WordPress source code to be able to determine for yourself whether a certain hook exists for your purposes. You ask whether there is a hook for the comment author link. So let’s look at the source for that function: comment_author_link(). We … Read more

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