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( string $handle )

Allows shortcodes to enqueue a script by handle

Description Description

Ensures the handle is registered and that it hasn’t already been enqueued.

Top ↑

Parameters Parameters


(string) (Required) Script handle used to register the script. The script should be registered in LLMS_Frontend_Assets.

Top ↑

Return Return


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

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.