Fires before comments are restored for a post from the Trash.
$post_id
Sortie :
@param int $post_id Post ID.
// 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é');
}
Chargement des actualités...