wp_print_styles

ACTION wp-includes\functions.wp-styles.php (ligne 30) github
Displays styles that are in the $handles queue. Passing an empty array to $handles prints the queue, passing an array with one string prints that style, and passing an array of strings prints those styles.
traduction française
Affiche les styles qui se trouvent dans la file d'attente $handles. Si l'on passe un tableau vide à $handles, la file d'attente s'affiche, si l'on passe un tableau contenant une chaîne, ce style s'affiche, et si l'on passe un tableau de chaînes, ces styles s'affichent.

Paramètres

Entrée :
$handles = false
Sortie :
@param string|bool|array $handles Styles to be printed. Default 'false'.
@return string[] On success, an array of handles of processed WP_Dependencies items; otherwise, an empty array.

Utilisation

Exécuter une action avant affichage des styles

Action déclenchée juste avant l'affichage des styles.

frontend
add_action('wp_print_styles', 'add_inline_styles');
function add_inline_styles() {
    echo '';
}

Actualités

Chargement des actualités...