Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 24,005
- How-to & Troubleshooting
- 129,527
- Creating & Extending
- 25,790
- Requests & Feedback
- 9,496
- Third Party Plugins
- 9,782
- Showcase
- 3,316
- Ideas
- 1,397
- Miscellaneous
- 9,170
-
This is another Idea i have:
function bp_is_active( ‘profile’ || ‘activity’ || ‘messages’ || ‘friends’ || ‘groups’ || ‘settings’ ) && function_exists( ‘current_user_has_role’ ) && current_user_has_role( ‘subscriber’ || ‘moderator’ || ‘administrator’ ) {
global $bp;
if ( BP_ACTIVATION_SLUG == $bp->current_component )
return true;
if (wp_redirect(get_option(‘siteurl’) . ‘/wp-login.php’))
return false;
}
But again it doesn’t work…. am I even on the right track?
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS