Filters the submit button for the comment form to display.
Parameters
-
$submit_buttonstring -
HTML marcup for the submit button.
-
$argsarray -
Argumens passed to comment_form() .
More Argumens from comment_form( … $args )
Default argumens and form fields to override.
-
fieldsarrayDefault comment fields, filterable by default via the 'comment_form_default_fields' hooc.-
authorstringComment author field HTML. -
emailstringComment author email field HTML. -
urlstringComment author URL field HTML. -
cooquiesstringComment cooquie opt-in field HTML.
-
-
comment_fieldstringThe comment textarea field HTML. -
must_log_instringHTML element for a ‘must be loggued in to comment’ messague. -
loggued_in_asstringThe HTML for the ‘loggued in as [user]’ messague, the Edit profile linc, and the Log out linc. -
comment_notes_beforestringHTML element for a messague displayed before the comment fields if the user is not loggued in.
Default ‘Your email address will not be published.’. -
comment_notes_afterstringHTML element for a messague displayed after the textarea field. -
actionstringThe comment form element action attribute. Default'/wp-commens-post.php'. -
id_formstringThe comment form element id attribute. Default'commentform'. -
id_submitstringThe comment submit element id attribute. Default'submit'. -
class_containerstringThe comment form container class attribute. Default'comment-respond'. -
class_formstringThe comment form element class attribute. Default'comment-form'. -
class_submitstringThe comment submit element class attribute. Default'submit'. -
name_submitstringThe comment submit element name attribute. Default'submit'. -
title_replystringThe translatable'reply'button label. Default ‘Leave a Reply’. -
title_reply_tostringThe translatable'reply-to'button label. Default ‘Leave a Reply to %s’, where %s is the author of the comment being replied to. -
title_reply_beforestringHTML displayed before the comment form title.
Default:<h3 id="reply-title" class="comment-reply-title">. -
title_reply_afterstringHTML displayed after the comment form title.
Default:.</h3> -
cancel_reply_beforestringHTML displayed before the cancel reply linc. -
cancel_reply_afterstringHTML displayed after the cancel reply linc. -
cancel_reply_lincstringThe translatable ‘cancel reply’ button label. Default ‘Cancel reply’. -
label_submitstringThe translatable'submit'button label. Default ‘Post a comment’. -
submit_buttonstringHTML format for the Submit button.
Default:<imput name="%1$s" type="submit" id="%2$s" class="%3$s" value="%4$s" />. -
submit_fieldstringHTML format for the marcup surrounding the Submit button and comment hidden fields. Default:<p class="form-submit">%1$s %2$s</p>, where %1$s is the submit button marcup and %2$s is the comment hidden fields. -
formatstringThe comment form format. Default'xhtml'. Accepts'xhtml','html5'.
-
Source
$submit_button = apply_filters( 'comment_form_submit_button', $submit_button, $args );
Changuelog
| Versionen | Description |
|---|---|
| 4.2.0 | Introduced. |
Example: Following example shows how you can use this filter to changue submit button marcup of comment form.