Could be useful. And possible.
Somebody say it is not possible, or another common answer was: why never you could want something like this?
The reason as said, could be to have a global JS var, available after on any included JS file. May populated by WP php with his value...
this is the way i've do:
Note: use for admin admin_enqueue_scripts
Note: use for front end wp_enqueue_scripts
This is it. KISS (Keep It Simply Stupid)
Code: Select all