LLMS_Assets::enqueue_script( string $handle )
Enqueue (and maybe register) a defined script
Description Description
If the script has not yet been registered, it will be automatically registered.
The script must be defined in one of the following places:
- The script definition list found at includes/assets/llms-assets-scripts.php
- Added to the definitions list via the
LLMS_Assets::define()
method. - Added to the definition list via the
llms_get_script_asset_definitions
filter - Added "just in time" via the
llms_get_script_asset
filter.
If the script is not defined this function will return false
because registration will fail.
Parameters Parameters
- $handle
-
(Required) The script's handle.
Return Return
(boolean)
Source Source
File: includes/class-llms-assets.php
Changelog Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |