wp_print_styles [ WordPress Function ]
wp_print_styles ( $handles = false )
| Parameters: |
|
| Uses: | |
| Returns: |
|
| Defined at: |
|
Benzer Fonksiyonlar: _print_styles, wp_print_scripts, print_late_styles, wp_register_style, wp_sprintf_l
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ý
- Function Reference/wp enqueue style « WordPress Codex
'/css/custom-style.css', array(), '20120208', 'all' ); // enqueing: wp_enqueue_style( 'custom-style' ); } add_action('wp_print_styles', 'theme_styles'); ...
codex.wordpress.org - WordPress › Support » Tags — wp_print_styles
(forgot?) Register · WordPress › Support » wp_print_styles. Tag: wp_print_styles Add New » ... multiple instance widget and wp_print_styles, 3, Baden, 1 year ...
wordpress.org - Use wp_enqueue_scripts, not wp_print_styles, to enqueue scripts and
Dec 12, 2011 ... A possible incompatibility with WordPress 3.3 could arise if you are using the wp_print_styles hook to enqueue styles — your styles may end up ...
wpdevel.wordpress.com - wp_print_styles Wordpress hook details -- Adam Brown, BYU ...
Detailed information about every action hook and filter used in WordPress. Makes Plugin API easier to use. Lists appearance, file location, and deprecation data ...
adambrown.info
Kullanýcý Tartýþmalarý [ wordpress.org ]
- timmcart on "wp_print_styles not working!"
- grahamsimmons on "wp_print_styles not working!"
- grahamsimmons on "wp_print_styles not working!"
- Baden on "multiple instance widget and wp_print_styles"
- Baden on "multiple instance widget and wp_print_styles"
- Baden on "multiple instance widget and wp_print_styles"
- skromta on "wp_print_styles documentation?"
- socaljake on "Per Page CSS Selection"
- chaoskaizer on "Per Page CSS Selection"
- socaljake on "Per Page CSS Selection"