comment_form_submit_field filter-hookWP 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.

Usage

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(string)
HTML markup for the submit field.
$args(array)
Arguments passed to comment_form().

Changelog

Since 4.2.0 Introduced.

Where the hook is called

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

Where the hook is used in WordPress

Usage not found.