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


(string) (Required) script handle

Top ↑

Return Return


Top ↑

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 );



Top ↑

Changelog Changelog

Version Description
3.4.3 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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