Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,531
- How-to & Troubleshooting
- 127,763
- Creating & Extending
- 25,646
- Requests & Feedback
- 9,390
- Third Party Plugins
- 9,713
- Showcase
- 3,317
- Ideas
- 1,327
- Miscellaneous
- 8,842
-
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’ );`
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS