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.
Source
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |