Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 128,793
- Creating & Extending
- 25,727
- Requests & Feedback
- 9,439
- Third Party Plugins
- 9,772
- Showcase
- 3,317
- Ideas
- 1,387
- Miscellaneous
- 9,125
-
This will work anyway if bp is switched off and when someone switch on it he will give a redeclaration error
Look here:
$active_plugins = get_site_option( 'active_sitewide_plugins' );
if ( isset( $active_plugins['buddypress/bp-loader.php'] ) )
require_once( BP_PLUGIN_DIR . 'bp-core.php' );
or making a system of hooks in hooks i made fo bpdev plugins to prevent “undefinied functions error”
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS