[wp-hackers] comment author vs post author

Mark Jaquith mark.wordpress at txfx.net
Fri Dec 3 09:26:12 UTC 2004

I just designate a secret e-mail address for my own comments and do this:

> <?php
>  if ($comment->comment_author_email == 'my_secret_email at site.com'){
> // do stuff
> } ?>

The secret e-mail address acts as a sort of password.  Works for me.

BoBB wrote:

>Is there any way to verify if the author of a comment is the author of
>the post? Something like this within the loop
>if (comment_author() == the_author) {do_this;}

More information about the hackers mailing list