Fires at the end of each Atom comment feed item.
$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.
// 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é');
}
Chargement des actualités...