Forums

Retrieving comment_author_email() for PHP, not display (5 posts)

  1. erick_paper
    Member
    Posted 4 years ago #

    Hello. Is there a way to get the value of comment_author_email() for use in PHP and not to display it directly? The templating engine of WP seems not to have anything to get comment values in the code! Thanks for any pointers.

  2. whooami
    Member
    Posted 4 years ago #

    depends on when you want to get it.. right after the comment submission, there's always this

    $_POST['email']

  3. erick_paper
    Member
    Posted 4 years ago #

    I want it for comment display in the SinglePost template file. While looping through all comments, I want to recognize the author of the post and show his comments in a separate CSS. So the $_POST variable doesn't work.

    Any other ideas? Thanks!

  4. whooami
    Member
    Posted 4 years ago #

    I want it for comment display in the SinglePost template file. While looping through all comments, I want to recognize the author of the post and show his comments in a separate CSS. So the $_POST variable doesn't work.

    and thats already been done.

    http://wordpress.org/search/author+comments+css?forums=1

    As far as I can tell all of your related posts on here re: grabbing variables are covered elsewhere, if not multiple times. I recommend using the search, and reading over the codex. :)

  5. Kafkaesqui
    Moderator
    Posted 4 years ago #

    Same solution as mentioned here:

    http://wordpress.org/support/topic/155822#post-689848

    (Hint: get_comment_author_email())

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.