BackPress Styles enqueue class.
package | BackPress |
---|---|
uses | |
since | r74 |
inherited_from | \WP_Dependencies |
WP_Dependencies()
__construct()
inherited_from | \WP_Dependencies::__construct() |
---|
__construct()
_css_href($src, $ver, $handle)
add(string $handle, string $src, array $deps= array()
, string $ver= false
, $args= null
) : array
Adds the item only if no item of that name already exists
string
handle Script name
string
src Script url
array
deps (optional) Array of script names on which this script depends
string
ver (optional) Script version (used for cache busting)
array
Hierarchical array of dependenciesadd_data(string $handle, string $data_name, array $data) : boolean
Adds data only if script has already been added
string
handle Script name
string
data_name Name of object in which to store extra data
array
data Array of extra data
boolean
successall_deps($handles, $recursion= false
, $group= false
)
Recursively builds array of items to process taking dependencies into account. Does NOT catch infinite loops.
inherited_from | \WP_Dependencies::all_deps() |
---|
all_deps(mixed $handles, boolean $recursion= false
, $group= false
)
Recursively builds array of items to process taking dependencies into account. Does NOT catch infinite loops.
mixed
handles Accepts (string) dep name or (array of strings) dep names
boolean
recursion Used internally when function calls itself
dequeue($handles)
do_item($handle)
inherited_from | \WP_Dependencies::do_item() |
---|
do_item($handle)
do_items(mixed $handles= false
, $group= false
) : array
Process the items passed to it or the queue. Processes all dependencies.
mixed
handles (optional) items to be processed. (void) processes queue, (string) process that item, (array of strings) process those items
array
Items that have been processedenqueue($handles)
in_default_dir($src)
query($handle, $list = 'registered'
)
remove($handles)
set_group($handle, $recursion, $group)
$args
array()
$base_url
$concat
''
$concat_version
''
$content_url
$default_dirs
$default_version
$do_concat
false
$done
array()
$group
0
$groups
array()
$print_html
''
$queue
array()
$registered
array()
$text_direction
'ltr'
$to_do
array()