apply_filters( "llms_get_{$type}_asset_before_prep", array|false $asset , string $handle , string $package_id )
Filter static asset data prior to preparing the definition
Description Description
The definition is "prepared" by merging its data with the default data and preparing its src.
The dynamic portion of this filter, {$type}
, refers to the asset type. Either "script" or "style".
Parameters Parameters
- $asset
-
(array|false) Array of asset data or
false
if the asset has not been defined with LifterLMS. - $handle
-
(string) The asset handle.
- $package_id
-
(string) An ID used to identify the originating plugin or theme that defined the asset.
Source Source
Changelog Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |