LLMS_Shortcode::enqueue_script( string $handle )
Allow shortcodes to enqueue scripts only when the shortcode is used Enqueues a registered script IF that script isn’t already enqueued
Parameters Parameters
- $handle
-
(string) (Required) script handle
Return Return
(void)
Source Source
File: includes/abstracts/abstract.llms.shortcode.php
protected 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.4.3 | Introduced. |