comment_form_default_fields WordPress Filter Hook

The comment_form_default_fields hook is used to modify the default fields for the comment form. By default, the comment form includes the fields for name, email, and website. However, you can use this hook to modify these fields or add new fields.

apply_filters( 'comment_form_default_fields', string[] $fields ) #

Filters the default comment form fields.


Parameters

$fields

(string[])Array of the default comment fields.


Top ↑

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