home
Contact
RSS Feed
rss
Comments by admin Fix!

There are various ways to fix the problem with someone choosing the same ‘displayname’ as the admin, The way I did so is change it so the comment author e-mail matches the admins e-mail. So instead of

if($comment->comment_author ==$userdata->display_name) ?>

You would put

if($comment->comment_author_email == "admin@email.com") { ?>

And thats it :) Just choose an e-mail that other users cannot guess, like a personal e-mail that you do not use on your website, and you should be safe.

folder Wordpress

Leave a Reply