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
// Define inline scripts. $scripts = array( 'llms-ajaxurl' => 'window.llms.ajaxurl = "' . admin_url( 'admin-ajax.php', is_ssl() ? 'https' : 'http' ) . '";', 'llms-ajax-nonce' => 'window.llms.ajax_nonce = "' . wp_create_nonce( LLMS_AJAX::NONCE ) . '";', 'llms-tracking-settings' => "window.llms.tracking = '" . wp_json_encode( llms()->events()->get_client_settings() ) . "';", '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();
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.4.1 | Introduced. |