BP_Members_Admin::admin_head()

Remove the Edit Profile page.


Description 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 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' );

		// Manage Invitations Tool screen is a tab of BP Tools.
		if ( is_network_admin() ) {
			remove_submenu_page( 'network-tools', 'bp-members-invitations' );
		} else {
			remove_submenu_page( 'tools.php', 'bp-members-invitations' );
		}
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.