BP_Members_Admin::admin_head()
Remove the Edit Profile page.
Description
We add these pages in order to integrate with WP’s Users panel, but we want them to show up as a row action of the WP panel, not as separate subnav items under the Users menu.
Source
File: bp-members/classes/class-bp-members-admin.php
public function admin_head() { remove_submenu_page( 'users.php', 'bp-profile-edit' ); remove_submenu_page( 'profile.php', 'bp-profile-edit' ); }
Changelog
Version | Description |
---|---|
BuddyPress 2.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.