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.


Top ↑

Parameters

$submit_field

(string)HTML markup for the submit field.

$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