Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: looking for some help with jquery, I’m really getting lost with this…


Boris
Participant

@travel-junkie

Here’s what I use in my plugins. Well, something similar. I actually wrap it in a class and do some other things, but it should give you some ideas:

`function load_scripts()
{
// no need to go on if it’s not a plugin page
if( ! isset( $_GET ) )
return;

if( $_GET == EVENT_FOLDER )
{
wp_enqueue_script( … );
}
}
add_action( ‘admin_print_scripts’, ‘load_scripts’ );`

Skip to toolbar