wp enqueue inline script due to dependancies
-
30-10-2019 - |
Question
Is there a way to use wp_enqueue_script() for inline scripts?
I'm doing this because my inline script depends on another script and i would like the flexibility of inserting it after it's loaded.
Also, It's an inline script because i'm passing php variables into the javascript (like theme path, etc)
Thanks in advance.
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with wordpress.stackexchange