Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




wp_print_styles [ WordPress Function ]

wp_print_styles ( $handles = false )
Parameters:
  • (array|bool) $handles Styles to be printed. An empty array prints the queue, an array with one string prints that style, and an array of strings prints those styles.
Uses:
Returns:
  • (bool) True on success, false on failure.
Defined at:



Display styles that are in the queue or part of $handles.

Source


<?php
function wp_print_styles$handles false ) {
    if ( 
'' === $handles // for wp_head
        
$handles false;

    if ( ! 
$handles )
        
do_action'wp_print_styles' );

    global 
$wp_styles;
    if ( ! 
is_a$wp_styles'WP_Styles' ) ) {
        if ( ! 
did_action'init' ) )
            
_doing_it_wrong__FUNCTION__sprintf__'Scripts and styles should not be registered or enqueued until the %1$s, %2$s, or %3$s hooks.' ),
                
'<code>wp_enqueue_scripts</code>''<code>admin_enqueue_scripts</code>''<code>init</code>' ), '3.3' );

        if ( !
$handles )
            return array(); 
// No need to instantiate if nothing is there.
        
else
            
$wp_styles = new WP_Styles();
    }

    return 
$wp_styles->do_items$handles );
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics