Remove the General Settings in BuddyPress v1.6.1
-
Hello,
First off, this question has already already been answered in the forum for BuddyPress v1.2.5.2, but the solution doesn’t seem to work in the latest version of BuddyPress (1.6.1).
The previous thread can be found here:
http://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/hide-general-settings/
I would like to do this exact same thing in BP v1.6.1.
* Remove the “General Settings” subnav menu (currently the default)
* Remove the “Delete Account” subnav menu (maybe not necessary since it can be disabled in the BP Plugin Settings)
* Make “Notifications” the default (and only) subnav menu beneath Settings.NOTE: I can remove the Delete Account subnav menu with the following code (found in the BP forum also), but since General is the default subnav menu, it’s not so easy.
`//Remove Settings->Notifications SubMenu
function remove_notifications_subnav(){
global $bp;
if ( $bp->current_component == $bp->settings->slug ) {
bp_core_remove_subnav_item($bp->settings->slug, ‘notifications’);
}
}
add_action( ‘wp’, ‘remove_notifications_subnav’, 2 );
?>`If someone can help me I’d really appreciate it. I need to remove the ability to update email and password (WP Users are created and managed from elsewhere). I also need to remove the ability for an end user to delete his/her account (I realize that this can be done from the BP options).
Best regard,
Mike.
You must be logged in to reply to this topic.