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


Top ↑

Return Return

(boolean)


Top ↑

Source Source

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

	 * @return void
	 */
	public static function enqueue_styles() {


Top ↑

Changelog 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.