dynamic external javascript generated using php
How to write an external javascript file with dynamic variable values generated using php from wp db values? So instead of using wp_localize_script for inline js variables, I’d like to use wp_enqueue_script with $src pointing to this php file acting like external js. So far, on the external js using php, the content as follow: … Read more