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


(string) (Required) Unique id for the script, used to prevent duplicates.


(string) (Required) JS to enqueue, do not add <script> tags!.


(string) (Optional) Where to enqueue, accepts "header" or "footer".

Default value: 'footer'


(float) (Optional) Enqueue priority.

Default value: 10

Top ↑

Return Return


Top ↑

Source Source

File: includes/class.llms.frontend.assets.php

	 * @return void
	public static function enqueue_styles() {

Top ↑

Changelog Changelog

Version Description
4.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.