comment_id_fields хук-фильтр . WP 3.0.0
Filters the returned comment ID fields.
Использование
add_filter( 'comment_id_fields', 'filter_function_name_9516', 10, 3 ); function filter_function_name_9516( $result, $post_id, $reply_to_id ){ // filter... return $result; }
- $result(строка)
- The HTML-formatted hidden ID field comment elements.
- $post_id(число)
- The post ID.
- $reply_to_id(число)
- The ID of the comment being replied to.
Список изменений
С версии 3.0.0 | Введена. |
Где вызывается хук
comment_id_fields
wp-includes/comment-template.php 1950
return apply_filters( 'comment_id_fields', $result, $post_id, $reply_to_id );