comment_form_defaults

comment_form_defaults

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('comment_form_defaults') is found 1 times:

  • /wp-includes/comment-template.php line 2675
    	 * @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 arguments 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'] ) && ! str_contains( $args['comment_notes_before'], 'id="email-notes"' ) ) {
    

See this hook used in plugins: