Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,887
- Creating & Extending
- 25,913
- Requests & Feedback
- 9,553
- Third Party Plugins
- 9,834
- Showcase
- 3,316
- Ideas
- 1,404
- Miscellaneous
- 9,183
-
Would a redirect do? –
//Prevents non admin users seeing pages
function bptest_restrict_bp_pages() {
global $bp;
if( !is_super_admin() && bp_is_members_directory() ) {
bp_core_redirect( $bp->root_domain );
}
}
add_action( 'get_header', 'bptest_restrict_bp_pages' );