comment_form_submit_field хук-фильтрWP 4.2.0

Filters the submit field for the comment form to display.

The submit field includes the submit button, hidden fields for the comment form, and any wrapper markup.

Использование

add_filter( 'comment_form_submit_field', 'wp_kama_comment_form_submit_field_filter', 10, 2 );

/**
 * Function for `comment_form_submit_field` filter-hook.
 * 
 * @param string $submit_field HTML markup for the submit field.
 * @param array  $args         Arguments passed to comment_form().
 *
 * @return string
 */
function wp_kama_comment_form_submit_field_filter( $submit_field, $args ){

	// filter...
	return $submit_field;
}
$submit_field(строка)
HTML markup for the submit field.
$args(массив)
Arguments passed to comment_form().

Список изменений

С версии 4.2.0 Введена.

Где вызывается хук

comment_form()
comment_form_submit_field
wp-includes/comment-template.php 2859
echo apply_filters( 'comment_form_submit_field', $submit_field, $args );

Где используется хук в WordPress

Использование не найдено.