wp enqueue script and js including php calls
-
hi!
i have a js file that includes php calls of wordpress functions. now i want to use the wp_enqueue_script function to load the script, but it seams that the wordpress functions (e.g. get_bloginfo) are not defined at this point.
i call this function over the “init” action ….
is there a way to include wp function calls in such a script file?PS: sorry for my bad english 😉
- The topic ‘wp enqueue script and js including php calls’ is closed to new replies.