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

	public static function enqueue_inline_script( $id, $script, $location = 'footer', $priority = 10 ) {
		llms_deprecated_function( 'LLMS_Frontend_Assets::enqueue_inline_script()', '4.4.0', 'LLMS_Assets::enqueue_inline()' );
		return llms()->assets->enqueue_inline( $id, $script, $location, $priority ) ? true : false;
	}


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.