post_stuck

ACTION wp-includes\post.php (ligne 3312) github
Fires once a post has been added to the sticky list.

Paramètres

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

Utilisation

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

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

Actualités

Chargement des actualités...