Definition:
function wp_just_in_time_script_localization() {}
Load localized data on print rather than initialization.
These localizations require information that may not be loaded even by init.
Source code
function wp_just_in_time_script_localization() { wp_localize_script( 'autosave', 'autosaveL10n', array( 'autosaveInterval' => AUTOSAVE_INTERVAL, 'savingText' => __('Saving Draft…'), 'saveAlert' => __('The changes you made will be lost if you navigate away from this page.') ) ); }
3809
No comments yet... Be the first to leave a reply!