wpseek.com
A WordPress-centric search engine for devs and theme authors
wp_localize_script › WordPress Function
Since2.2.0
Deprecatedn/a
› wp_localize_script ( $handle, $object_name, $l10n )
Parameters: (3) |
|
Links: | |
See: |
|
Returns: |
|
Defined at: |
|
Codex: |
Localize a script.
Works only if the script has already been added.
Accepts an associative array $l10n and creates a JavaScript object:
"$object_name" = {
key: value,
key: value,
...
}
Related Functions: wp_playlist_scripts, wp_add_inline_script, wp_normalize_path, wp_initialize_site, _wp_footer_scripts