LLMS_Frontend_Assets::enqueue_locale_scripts()
Enqueue dependencies and inline script data for form localization
Return Return
(void)
Source Source
File: includes/class.llms.frontend.assets.php
* Enqueue dependencies and inline script data for form localization * * @since 5.0.0 * * @return void */ protected static function enqueue_locale_scripts() { if ( is_llms_account_page() || is_llms_checkout() ) { llms()->assets->enqueue_script( 'llms-select2' ); llms()->assets->enqueue_inline( 'llms-countries-locale', "window.llms.address_info = '" . wp_json_encode( llms_get_countries_address_info() ) . "';",
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |