Warning: This method has been deprecated. Use LLMS_Assets::enqueue_inline() instead.
LLMS_Frontend_Assets::enqueue_inline_script( string $id, string $script, string $location = 'footer', float $priority = 10 )
Enqueue an inline script
Parameters Parameters
- $id
-
(string) (Required) Unique id for the script, used to prevent duplicates.
- $script
-
(string) (Required) JS to enqueue, do not add <script> tags!.
- $location
-
(string) (Optional) Where to enqueue, accepts "header" or "footer".
Default value: 'footer'
- $priority
-
(float) (Optional) Enqueue priority.
Default value: 10
Return Return
(boolean)
Source Source
File: includes/class.llms.frontend.assets.php
* @return void */ public static function enqueue_styles() {
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |