LLMS_Assets::enqueue_inline( string $handle, string $asset, string $location, int|float $priority = 10 )
Enqueue an inline script or style
Description Description
Parameters Parameters
- $handle
-
(Required) Inline asset ID.
- $asset
-
(Required) The inline script or CSS rule. This should *not* be wrapped in <script> or <style> tags.
- $location
-
(Required) Output location of the inline asset. Accepts "style" (for stylesheets in the headr), "header" (for scripts in the header), or "footer" (for scripts in the footer).
- $priority
-
(Optional) Output priority of the inline asset.
Default value: 10
Return Return
(float) Returns the priority of the enqueued script
Source Source
File: includes/class-llms-assets.php
Changelog Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |