Registers some assets from public available CDNs: ajax.googleapis.com cdnjs.cloudflare.com cdn.jsdelivr.net
author | etessore |
---|---|
since | 1.0 |
package | classes |
version | 1.0.1 |
__construct()
inherited_from | \DefaultAssets::__construct() |
---|
add_css(string $handle, string | bool $src, array $deps, string | bool $ver, string $media) : \DefaultAssets
see | http://codex.wordpress.org/Function_Reference/wp_register_style |
---|---|
inherited_from | \DefaultAssets::add_css() |
string
Name of the stylesheet.
string
bool
Path to the stylesheet from the root directory of WordPress. Example: '/css/mystyle.css'.
array
Array of handles of any stylesheet that this stylesheet depends on. (Stylesheets that must be loaded before this stylesheet.) Pass an empty array if there are no dependencies.
string
bool
String specifying the stylesheet version number. Set to NULL to disable. Used to ensure that the correct version is sent to the client regardless of caching.
string
The media for which this stylesheet has been defined.
\DefaultAssets
$this for chainabilityadd_js(string $handle, string $src, array $deps, string | bool $ver, bool $in_footer) : \DefaultAssets
see | http://codex.wordpress.org/Function_Reference/wp_register_script |
---|---|
inherited_from | \DefaultAssets::add_js() |
string
Script name
string
Script url
array
(optional) Array of script names on which this script depends
string
bool
(optional) Script version (used for cache busting), set to NULL to disable
bool
(optional) Whether to enqueue the script before or before
\DefaultAssets
$this for chainabilityregister_custom()
inherited_from | \DefaultAssets::register_custom() |
---|
register_jqueryui_themes(array $themes) : \DefaultAssetsCDN
$assets_manager
inherited_from | \DefaultAssets::$$assets_manager |
---|