comment_form_submit_field filter-hook . 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.
Usage
add_filter( 'comment_form_submit_field', 'filter_function_name_7914', 10, 2 ); function filter_function_name_7914( $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_submit_field
wp-includes/comment-template.php 2698
echo apply_filters( 'comment_form_submit_field', $submit_field, $args );