apply_filters( 'comment_form_default_fields', string[] $fields )
Filters the default comment form fields.
Description Description
Parameters Parameters
- $fields
-
(string[]) Array of the default comment fields.
Source Source
Changelog Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
Delete A Field from Your Comment Form
function remove_website_field($fields) { unset($fields['url']); return $fields; } add_filter('comment_form_default_fields', 'remove_website_field');