comment_form_before_fields WordPress Action Hook

Before adding new comment fields to a form, developers can use the comment_form_before_fields hook. This hook allows developers to add new fields to the form, as well as modify the default fields that are displayed. This hook is useful for adding custom fields to the comment form, or for changing the order of the fields.

do_action( 'comment_form_before_fields' ) #

Fires before the comment fields in the comment form, excluding the textarea.


Source

File: wp-includes/comment-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.0.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