commentrss2_item

ACTION wp-includes\feed-rss2-comments.php (ligne 119) github
Fires at the end of each RSS2 comment feed item.

Paramètres

Entrée :
$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.

Utilisation

// 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é');
}

Actualités

Chargement des actualités...