comments_block_form_defaults

函数


comments_block_form_defaults ( $fields )
参数
  • (array)
    $fields
    The default comment form arguments.
    Required:
返回值
  • (array) Returns the modified fields.
定义位置
  • wp-includes/blocks/comments.php
    , line 110
引入
弃用

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

function comments_block_form_defaults( $fields ) {
	if ( wp_is_block_theme() ) {
		$fields['submit_button'] = '';
		$fields['submit_field']  = '

%1$s %2$s

'; } return $fields; }