comment_form_submit_field WordPress Filter Hook
The comment_form_submit_field hook is used to modify the default submit button for the comment form. This hook allows you to add custom HTML or modify the default button.
apply_filters( 'comment_form_submit_field', string $submit_field , array $args ) #
Filters the submit field for the comment form to display.
Description
The submit field includes the submit button, hidden fields for the comment form, and any wrapper markup.
Parameters
- $submit_field
(string)HTML markup for the submit field.
- $args
(array)Arguments passed to comment_form().
Source
Changelog
Version | Description |
---|---|
4.2.0 | Introduced. |