Localizing scripts in the footer
-
okay,
So I need to load a script in the footer and I need to localize that script. The problem is that I don’t have the data to localize the script until after the content of the site has been loaded.
wp_localize_script and wp_enqueue_script don’t have any effect if they’re called with the wp_footer hook.
So, does this mean I have to output the localization and script tags myself? or am I missing something?
- The topic ‘Localizing scripts in the footer’ is closed to new replies.