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.


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


Since 4.2.0 Introduced.

Where the hook is called

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

Where the hook is used in WordPress

Usage not found.