Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

LLMS_Shortcodes::enqueue_script( [type] $handle )

Allows shortcodes to enqueue a script by handle Ensures the handle is registered and that it hasn’t already been enqueued


Description Description


Parameters Parameters

$handle

([type]) (Required) script handle used to register the script the script should be registered in LLMS_Frontend_Assets


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/shortcodes/class.llms.shortcodes.php

	private static function enqueue_script( $handle ) {

		if ( wp_script_is( $handle, 'registered' ) && ! wp_script_is( $handle, 'enqueued' ) ) {

			wp_enqueue_script( $handle );

		}

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.2 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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