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

	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

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.