WordPress.org

Ready to get started?Download WordPress

Forums

How To Change Name Field In Comments (3 posts)

  1. WordPress Bum
    Member
    Posted 1 year ago #

    Attempting to write a plugin but in order to do so I need to change the ID and NAME value in the comments field.

    Seems I can change everything but the NAME and I can't figure out how. No matter what I do I always get "ERROR: please fill the required fields (name, email)." even if I dont make the required fields.

    So what gives here? How can I rename the ID/NAME fields to a different value in the comment form?

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    I'm usually coming at this from a theme angle but have you looked at http://codex.wordpress.org/Function_Reference/comment_form

    Not sure if you can leverage the function directly in a plugin but it might give you a starting point to work from.

  3. WordPress Bum
    Member
    Posted 1 year ago #

    I've dug through it and everything else. Thanks though.

    Seems there is no hook, action, filter to change the value of name for AUTHOR and EMAIL.

    Anyone else know of a way to do this?

Topic Closed

This topic has been closed to new replies.

About this Topic