@mossyoak
	Active 3 years ago
	
	- 
	
	Henry replied to the topic Private Portal with BuddyPress in the forum Creating & Extending 12 years, 2 months ago Hi @mossyoak I’ve run a few tests and made some slight changes to that code. Try this 
 function bp_my_restrict() {
 $user_id = bp_loggedin_user_id();
 $user = new WP_User( $user_id );if ( ( $user->roles[0] != 'administrator' ) ) { if ( bp_is_current_component('members') || bp_is_current_component('activity') ) {…[Read more]