where to use wp-enqueue in plugin?
-
Hi there,
I’m developing a wordpress plugin and I need to include some js and css files, I’m a little bit confused about using wp-enqueue function, in a case that I’ve used smarty codes inside my page.
I don’t know where to put these code:add_action( 'wp_enqueue_scripts', 'my_scripts_method' ); function my_scripts_method() { wp_enqueue_script( 'newscript', plugins_url( '/js/functions.js' , __FILE__ ) ); }my plugin pages url are like this:
http://domain.com/?test=index
thanks in advance
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘where to use wp-enqueue in plugin?’ is closed to new replies.