wpseek.com
A WordPress-centric search engine for devs and theme authors
wp_enqueue_style › WordPress Function
Since2.6.0
Deprecatedn/a
› wp_enqueue_style ( $handle, $src = '', $deps = array(), $ver = false, $media = 'all' )
Parameters: (5) |
|
Links: | |
See: |
|
Defined at: |
|
Codex: |
Enqueues a CSS stylesheet.
Registers the style if source provided (does NOT overwrite) and enqueues.Related Functions: wp_dequeue_style, wp_enqueue_block_style, wp_enqueue_emoji_styles, wp_enqueue_embed_styles, wp_enqueue_stored_styles
Source
function wp_enqueue_style( $handle, $src = '', $deps = array(), $ver = false, $media = 'all' ) { _wp_scripts_maybe_doing_it_wrong( __FUNCTION__, $handle ); $wp_styles = wp_styles(); if ( $src ) { $_handle = explode( '?', $handle ); $wp_styles->add( $_handle[0], $src, $deps, $ver, $media ); } $wp_styles->enqueue( $handle ); }