comment_id_fields WordPress Filter Hook

The comment_id_fields hook is used to add extra fields to the comment form. This hook is used by plugins to add fields for custom data, such as a rating or review.

apply_filters( 'comment_id_fields', string $result, int $post_id, int $reply_to_id ) #

Filters the returned comment ID fields.


Parameters

$result

(string)The HTML-formatted hidden ID field comment elements.

$post_id

(int)The post ID.

$reply_to_id

(int)The ID of the comment being replied to.


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