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
File: wp-includes/comment-template.php
.
View all references
$args = wp_parse_args( $args, apply_filters( 'comment_form_defaults', $defaults ) );
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
The following defaults are possible to set with this code:
Possible values for $defaults[ ‘…’ ]:
Example for overriding the title of the comment form (default ‘Leave a Reply’) from within a theme’s functions.php in the theme setup function: