Fires once a post has been added to the sticky list.
$post_id
Sortie :
@param int $post_id ID of the post that was stuck.
// 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é');
}
Chargement des actualités...