Fires immediately before a comment is restored from the Trash.
$comment->comment_ID, $comment
Sortie :
@param string $comment_id The comment ID as a numeric string. @param WP_Comment $comment The comment to be untrashed.
// Ajouter une fonction au hook action 'untrash_comment'
add_action('untrash_comment', 'ma_fonction_personnalisee', 10, 1);
function ma_fonction_personnalisee($comment->comment_ID, $comment) {
// Votre code ici
error_log('Hook untrash_comment déclenché');
}
Chargement des actualités...