comment_form_defaults

comment_form_defaults

Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-5.3.2

apply_filters('comment_form_defaults') is found 1 times:

  • /wp-includes/comment-template.php line 2430
    	 * @since 3.0.0
    	 *
    	 * @param array $defaults The default comment form arguments.
    	 */
    	$args = wp_parse_args( $args, apply_filters( 'comment_form_defaults', $defaults ) );
    
    	// Ensure that the filtered args contain all required default values.
    	$args = array_merge( $defaults, $args );
    
    	// Remove aria-describedby from the email field if there's no associated description.
    	if ( isset( $args['fields']['email'] ) && false === strpos( $args['comment_notes_before'], 'id="email-notes"' ) ) {
    

See this hook used in plugins: