bp_groups_remove_edit_page_menu()

Remove rogue WP core Edit menu when viewing a single group.

Description

Source

File: bp-groups/bp-groups-adminbar.php

function bp_groups_remove_edit_page_menu() {
	if ( bp_is_group() ) {
		remove_action( 'admin_bar_menu', 'wp_admin_bar_edit_menu', 80 );
	}
}

Changelog

Changelog
Version Description
BuddyPress 1.6.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.