commentrss2_item хук-событие . WP 2.1.0
Fires at the end of each RSS2 comment feed item.
Использование
add_action( 'commentrss2_item', 'action_function_name_9176', 10, 2 ); function action_function_name_9176( $comment_ID, $ID ){ // action... }
- $comment_ID(число)
- The ID of the comment being displayed.
- $ID(число)
- The ID of the post the comment is connected to.
Список изменений
С версии 2.1.0 | Введена. |
Где вызывается хук
В файле: /wp-includes/feed-rss2-comments.php
commentrss2_item
wp-includes/feed-rss2-comments.php 116
do_action( 'commentrss2_item', $comment->comment_ID, $comment_post->ID );