One of the greatest feature of WordPress is its commenting system. The commenting system helps you build a community around your blog. By default, WordPress comments have all the required featured, but it also lacks some.
There is no built-in SPAM comments control system in WordPress. You must either rely on third party SPAM control WordPress plugins or apply tweaks to your theme to delete WordPress SPAM comments automatically.
WordPress commenting system is also not optimized to engage the users. There should have been some built-in comment subscription system and a recognition system for people who have posted a comment before on the same site.
There is a great news. You can now greet returning commentators on your site with a custom message using the code snippet below.
$lastCommenter = $_COOKIE['comment_author_'.COOKIEHASH];
echo "Welcome Back ". $lastCommenter ."! to www.agentwp.com";
} else {
echo "Welcome, Guest!";
} ?>
Just paste this code in the comments.php file of your theme and customize the message as needed. As you can see in the code, it will display ‘Welcome, Guest’ if the person has never commented on your site before. If, however, she has commented before, it will display ‘Welcome Back CommenterName to www.agentwp.com’.