eo_register_style
since 3.0.0
eo_register_style( $handle, $src, $deps = array(), $ver = false, $media = 'all' )
A wrapper for wp_enqueue_style(). Filters the stylesheet url so themes can replace a stylesheet with their own.
Parameters
string
|
$handle |
Name of the stylesheet.
|
string|bool
|
$src |
Path to the stylesheet from the WordPress root directory. Example: '/css/mystyle.css'.
|
array
|
$deps = array() |
An array of registered style handles this stylesheet depends on. Default empty array.
|
string|bool
|
$ver = false |
String specifying the stylesheet version number. Used to ensure that the correct version is sent to the client regardless of caching. Default 'false'. Accepts 'false', 'null', or 'string'.
|
string
|
$media = 'all' |
Optional. The media for which this stylesheet has been defined. Default 'all'. Accepts 'all', 'aural', 'braille', 'handheld', 'projection', 'print', 'screen', 'tty', or 'tv'.
|
Hooks
Changelog