commentrss2_item хук-событиеWP 2.1.0

Fires at the end of each RSS2 comment feed item.

Использование

add_action( 'commentrss2_item', 'wp_kama_commentrss2_item_action', 10, 2 );

/**
 * Function for `commentrss2_item` action-hook.
 * 
 * @param int $comment_id      The ID of the comment being displayed.
 * @param int $comment_post_id The ID of the post the comment is connected to.
 *
 * @return void
 */
function wp_kama_commentrss2_item_action( $comment_id, $comment_post_id ){

	// action...
}
$comment_id(int)
The ID of the comment being displayed.
$comment_post_id(int)
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 );

Где используется хук в WordPress

Использование не найдено.