Site logo

Archived topic

How to change comment's author name form?

3 replies · Started by Allen on August 18, 2021

Viewing posts 1–4 of 4

hi
I added to snippet then it said "cannot redeclare function generate_filter_comment_fields"
Can I know what did i miss?
thanks

Change the name of the function and add priority value. :)

Example: Change generate_filter_comment_fields to change_comment_author_name_field

And then do your changes to the sprintf values. Particularly on "Name". By default, it uses the commenter's name. Change esc_attr( $commenter['comment_author'] ), to something else if you need to.

This archived topic is closed to new replies.