LLMS_Assets::define( string $type, array[] $assets )
Define a list of assets by type so they can be enqueued or registered later.
Description Description
If an asset is already defined, redefining it will overwrite the previous definition.
Parameters Parameters
- $type
-
(Required) Asset type. Accepts 'scripts' or 'styles'.
- $assets
-
(Required) List of assets to define. The array key is the asset's handle. Each array value is an array of asset definitions.
Return Return
(array[]) Returns the updated list of defined assets.
Source Source
File: includes/class-llms-assets.php
Changelog Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |