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.
$submit_fieldstring
$argsarray
fields arrayauthor stringemail stringurl stringcookies stringcomment_field stringmust_log_in stringlogged_in_as stringcomment_notes_before stringcomment_notes_after stringaction string'/wp-comments-post.php'.id_form string'commentform'.id_submit string'submit'.class_container string'comment-respond'.class_form string'comment-form'.class_submit string'submit'.name_submit string'submit'.title_reply string'reply' button label. Default ‘Leave a Reply’.title_reply_to string'reply-to' button label. Default ‘Leave a Reply to %s’, where %s is the author of the comment being replied to.title_reply_before string<h3 id="reply-title" class="comment-reply-title">.title_reply_after string</h3>.cancel_reply_before stringcancel_reply_after stringcancel_reply_link stringlabel_submit string'submit' button label. Default ‘Post a comment’.submit_button string<input name="%1$s" type="submit" id="%2$s" class="%3$s" value="%4$s" />.submit_field string<p class="form-submit">%1$s %2$s</p>, where %1$s is the submit button markup and %2$s is the comment hidden fields.format string'xhtml'. Accepts 'xhtml', 'html5'.echo apply_filters( 'comment_form_submit_field', $submit_field, $args );
| Version | Description |
|---|---|
| 4.2.0 | Introduced. |
You must log in before being able to contribute a note or feedback.
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/comment_form_submit_field