comment_reply_to_unapproved_comment

ACTION wp-includes\comment.php (ligne 3638) github
Fires when a comment reply is attempted to an unapproved comment.

Paramètres

Entrée :
$comment_post_id, $comment_parent
Sortie :
@param int $comment_post_id Post ID.
@param int $comment_parent  Parent comment ID.

Utilisation

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

function ma_fonction_personnalisee($comment_post_id, $comment_parent) {
    // Votre code ici
    error_log('Hook comment_reply_to_unapproved_comment déclenché');
}

Actualités

Chargement des actualités...