Forums

wp enqueue script and js including php calls (1 post)

  1. navyseal
    Member
    Posted 2 years ago #

    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 ;)

Topic Closed

This topic has been closed to new replies.

About this Topic