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_Frontend_Assets::get_inline_scripts( string $where = null )
Retrieve inline scripts
Parameters Parameters
- $where
-
(string) (Optional) header or footer, if none provided both will be returned
Default value: null
Return Return
(array)
Source Source
File: includes/class.llms.frontend.assets.php
'llms-LLMS-obj' => 'window.LLMS = window.LLMS || {};', 'llms-l10n' => 'window.LLMS.l10n = window.LLMS.l10n || {}; window.LLMS.l10n.strings = ' . LLMS_L10n::get_js_strings( true ) . ';', ); $checkout_urls = self::get_checkout_urls(); if ( ! empty( $checkout_urls ) ) { $scripts['llms-checkout-urls'] = "window.llms.checkoutUrls = JSON.parse( '" . wp_json_encode( $checkout_urls ) . "' );"; } // Enqueue them. foreach ( $scripts as $handle => $script ) {
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.4.1 | Introduced. |