untrash_post_comments

ACTION wp-includes\post.php (ligne 4277) github
Fires before comments are restored for a post from the Trash.

Paramètres

Entrée :
$post_id
Sortie :
@param int $post_id Post ID.

Utilisation

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

function ma_fonction_personnalisee($post_id) {
    // Votre code ici
    error_log('Hook untrash_post_comments déclenché');
}

Actualités

Chargement des actualités...