WP Localize Script
-
Hi Frank,
how are you?
We are including all the “inline js code” in our autoptimized js file.
In our scripts, we have:
wp_localize_script($this->places_gmaps, ‘places_gmaps’, $places_gmaps_settings);
It includes dinamyc params, I mean the lat/lng coordinates, for multiple pages… so we would like to EXCLUDE just this inline snippet and we need to “echo” it AFTER your autoptimize JS file. Is it possible?
Hope I was clear, I am sorry.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘WP Localize Script’ is closed to new replies.