Fires at the end of each RSS2 comment feed item.
$comment->comment_ID, $comment_post->ID
Sortie :
@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.
// Ajouter une fonction au hook action 'commentrss2_item'
add_action('commentrss2_item', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee($comment->comment_ID, $comment_post->ID) {
// Votre code ici
error_log('Hook commentrss2_item déclenché');
}
Chargement des actualités...