Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 24,045
- How-to & Troubleshooting
- 129,739
- Creating & Extending
- 25,802
- Requests & Feedback
- 9,505
- Third Party Plugins
- 9,793
- Showcase
- 3,316
- Ideas
- 1,375
- Miscellaneous
- 9,181
-
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”