LLMS_Assets::enqueue_inline( string $handle, string $asset, string $location, int|float $priority = 10 )

Enqueue an inline script or style


Description Description


Parameters Parameters

$handle

(Required) Inline asset ID.

$asset

(Required) The inline script or CSS rule. This should *not* be wrapped in <script> or <style> tags.

$location

(Required) Output location of the inline asset. Accepts "style" (for stylesheets in the headr), "header" (for scripts in the header), or "footer" (for scripts in the footer).

$priority

(Optional) Output priority of the inline asset.

Default value: 10


Top ↑

Return Return

(float) Returns the priority of the enqueued script


Top ↑

Source Source

File: includes/class-llms-assets.php


			

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.