comment_id_fields filter-hook . WP 3.0.0
Filters the returned comment ID fields.
Usage
add_filter( 'comment_id_fields', 'filter_function_name_5288', 10, 3 ); function filter_function_name_5288( $result, $post_id, $reply_to_id ){ // filter... return $result; }
- $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.
Changelog
Since 3.0.0 | Introduced. |
Where the hook is called
comment_id_fields
wp-includes/comment-template.php 1950
return apply_filters( 'comment_id_fields', $result, $post_id, $reply_to_id );