comment_atom_entry

ACTION wp-includes\feed-atom-comments.php (ligne 141) github
Fires at the end of each Atom comment feed item.

Paramètres

Entrée :
$comment->comment_ID, $comment_post->ID
Sortie :
@param int $comment_id      ID of the current comment.
@param int $comment_post_id ID of the post the current comment is connected to.

Utilisation

// Ajouter une fonction au hook action 'comment_atom_entry'
add_action('comment_atom_entry', 'ma_fonction_personnalisee', 10, 1);

function ma_fonction_personnalisee($comment->comment_ID, $comment_post->ID) {
    // Votre code ici
    error_log('Hook comment_atom_entry déclenché');
}

Actualités

Chargement des actualités...