Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 24,005
- How-to & Troubleshooting
- 129,528
- Creating & Extending
- 25,790
- Requests & Feedback
- 9,496
- Third Party Plugins
- 9,784
- Showcase
- 3,316
- Ideas
- 1,397
- Miscellaneous
- 9,170
-
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