Class Assets
Base asset management class for frontend scripts and styles.
- MatthiasWeb\RealMediaLibrary\base\Base
-
MatthiasWeb\RealMediaLibrary\base\Assets
Direct known subclasses
Methods summary
abstract public
|
#
enqueue_scripts_and_styles( string $type )
Enqueue scripts and styles depending on the type. You can check the type through the $type parameter. In this function you can include your external libraries from public/lib, too. |
public
|
#
enqueueScript( string $handle, string $src = '', array $deps = array(), boolean $in_footer = false, boolean $isLib = false )
Registers the script if $src provided (does NOT overwrite), and enqueues it. Use this wrapper method instead of wp_enqueue_script if you want to use the cachebuster for the given src. If the src is not found in the cachebuster (inc/others/cachebuster.php) it falls back to RML_VERSION. |