comment_form_defaults WordPress Filter Hook

This hook allows you to modify the default values for fields in the comment form. This can be useful if you want to pre-fill certain fields or change the order of the fields.

apply_filters( 'comment_form_defaults', array $defaults ) #

Filters the comment form default arguments.


Description

Use ‘comment_form_default_fields’ to filter the comment fields.


Top ↑

Parameters

$defaults

(array)The default comment form arguments.


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