comment_form_submit_button WordPress Filter Hook

The comment_form_submit_button hook allows you to modify the submit button for the comment form. This can be useful if you want to add a custom class or change the text of the button.

apply_filters( 'comment_form_submit_button', string $submit_button, array $args ) #

Filters the submit button for the comment form to display.


Parameters

$submit_button

(string)HTML markup for the submit button.

$args

(array)Arguments passed to comment_form().


Top ↑

Source

File: wp-includes/comment-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More