comment_form_defaults WordPress Filter Hook
This hook allows you to modify the default values for fields in the comment form. This can be useful if you want to pre-fill certain fields or change the order of the fields.
apply_filters( 'comment_form_defaults', array $defaults ) #
Filters the comment form default arguments.
Description
Use ‘comment_form_default_fields’ to filter the comment fields.
Parameters
- $defaults
(array)The default comment form arguments.
Source
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |