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.
Parameters Parameters
- $handle
-
(string) (Required) Script handle used to register the script. The script should be registered in
LLMS_Frontend_Assets
.
Return Return
(void)
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 ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.2 | Introduced. |