Skip to:
Content
Pages
Categories
Search
Top
Bottom

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


Boone Gorges
Keymaster

@boonebgorges

jquery should already be loaded on all Dashboard panels, I think. You may still need to load jquery-ui. In that case, your method looks like it should work. The only possible snag I can see is that is_admin() might return false until after the ‘init’ action. In that case, try just doing
`add_action(‘init’, ‘load_js’);`
and move the admin check inside of the load_js() function:
`function load_js() {
if ( !is_admin() )
return false;
wp_register_script….`

Skip to toolbar