WordPress.org

Ready to get started?Download WordPress

Forums

How i can grab mail and user from comment form? (1 post)

  1. DarkWolf
    Member
    Posted 1 year ago #

    How i can grab mail and username from submit in comment form?
    -
    I've try with
    -

    $commenter = wp_get_current_commenter();
    esc_attr( $commenter['comment_author'] )
    esc_attr(  $commenter['comment_author_email'] )

    -
    but this value grab from cookie instead i need to grab every new data directly from comment form.

    Thanks in advace for any help,
    DarkWolf

    -

    Edit: Another small question...
    I've this beta plugin with this:

    include(ABSPATH . "wp-includes/pluggable.php");
    if ( !is_user_logged_in() )
    {
      ...
    }

    Jow i can replace with a best code?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.