post_unstuck

ACTION wp-includes\post.php (ligne 3356) github
Fires once a post has been removed from the sticky list.

Paramètres

Entrée :
$post_id
Sortie :
@param int $post_id ID of the post that was unstuck.

Utilisation

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

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

Actualités

Chargement des actualités...