untrashed_post_comments

ACTION wp-includes\post.php (ligne 4305) github
Fires after 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 'untrashed_post_comments'
add_action('untrashed_post_comments', 'ma_fonction_personnalisee', 10, 1);

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

Actualités

Chargement des actualités...