How To Change Name Field In Comments (3 posts)

  1. Aaron
    Posted 2 years 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
    Forum Moderator
    Posted 2 years 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. Aaron
    Posted 2 years 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