PHP help – exclusively allow users to respond to their own comments
-
Hi guys
I’m not sure if what I’m trying to do is possible. I’d like the option for registered users to reply to their own comments – no one else, just users own their own comments.
So I’m using this bit of code…
<?php if ($comment->comment_author_email == “[email protected]”) echo comment_reply_link(array (‘reply_text’ => ‘Respond’, ‘depth’ => $depth, ‘max_depth’ => $args[‘max_depth’])) ?>
It works, if the comment author email matches the hard-coded email address then the respond link shows.
Obviously I don’t want the email hard-coded in though. How do I replace “[email protected]” with the current user email?
Thanks! : )
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘PHP help – exclusively allow users to respond to their own comments’ is closed to new replies.