wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema
wp_print_styles › WordPress Function
Desde2.6.0
Obsoleton/a
› wp_print_styles ( $handles = false )
Parâmetros: |
|
Retorna: |
|
Definido em: |
|
Codex: |
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.Funções relacionadas: wp_print_scripts, wp_styles, print_late_styles, wp_register_style, wp_sprintf_l
Fonte
function wp_print_styles( $handles = false ) { global $wp_styles; if ( '' === $handles ) { // For 'wp_head'. $handles = false; } if ( ! $handles ) { /** * Fires before styles in the $handles queue are printed. * * @since 2.6.0 */ do_action( 'wp_print_styles' ); } _wp_scripts_maybe_doing_it_wrong( __FUNCTION__ ); if ( ! ( $wp_styles instanceof WP_Styles ) ) { if ( ! $handles ) { return array(); // No need to instantiate if nothing is there. } } return wp_styles()->do_items( $handles ); }