Fires when a comment is attempted on a post that does not exist.
$comment_post_id
Sortie :
@param int $comment_post_id Post ID.
// Ajouter une fonction au hook action 'comment_id_not_found'
add_action('comment_id_not_found', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee($comment_post_id) {
// Votre code ici
error_log('Hook comment_id_not_found déclenché');
}
Chargement des actualités...