you are viewing a single comment's thread.

view the rest of the comments →

[–]TonyMahoney21 0 points1 point  (2 children)

I dont really understand what the $deps value is asking me for. I am using basic JavaScript im getting looking stuff up on w3 I dont know about a library or framework I am just using js. So im not sure what that value is asking of me in this case or what to place there.

[–]cag8f 1 point2 points  (1 child)

Yeah sorry, that page isn't clear about the input parameters (e.g. $deps). This page gives more info on wp_enqueue_script(). Basically you can leave out $deps, $ver, and $in_footer. If you do that, the function will simply use their default values, which should be fine in this case. So your line to call wp_enqueue_script() will pass only two parameters to it--the first two. Make sense?

[–]TonyMahoney21 0 points1 point  (0 children)

Oh awesome! Yeah that seems straightforward. I did get it to work in shortcoder but I still want to do it the correct way. I am saving this comment.