post_comments_block_form_defaults() – Use the button block classes for the form-submit button.

You appear to be a bot. Output may be restricted

Description

Use the button block classes for the form-submit button.

Usage

$array = post_comments_block_form_defaults( $fields );

Parameters

$fields
( array ) required – The default comment form arguments.

Returns

array Returns the modified fields.

Source

File name: wordpress/wp-includes/blocks/post-comments.php


Lines:

1 to 9 of 9
function post_comments_block_form_defaults( $fields ) {
  if ( wp_is_block_theme() ) {
    $fields['submit_button'] = '<input name="%1$s" type="submit" id="%2$s" class="%3$s wp-block-button__link" value="%4$s" />';
    $fields['submit_field']  = '<p class="form-submit wp-block-button">%1$s %2$s</p>';
  }

  return $fields;
}
 

 View on GitHub View on Trac