LLMS_Assets::prepare_inline_asset_for_output( array $asset, string $location )
Prepares an inline asset definition for being output.
Description Description
When $this->debugging_assets
is true
this will add line breaks between each inline asset and output the asset’s handle as a comment before the asset’s script/style so that the inline assets can be quickly located and reviewed in the generated source of the page.
Parameters Parameters
- $asset
-
(Required) The inline asset definition array.
- $location
-
(Required) The location of the asset. Accepts "header", "footer", or "style".
Return Return
(string)
Source Source
File: includes/class-llms-assets.php
Changelog Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |