What is the difference between comment_form_default_fields and comment_form_fields?

Description in the official code reference seems to differ only by the word "default".

What's the difference in application? Which hook can I use to change the html output of fields for example? And what's the purpose of the other hook then?

1 Answer 1


Using comment_form_default_fields filter hook you can change email, author and url fields but cannot change comment field. And using comment_form_fields filter hook you can change all the 4 fields. You can use both filter hooks to change html.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.