bp_groups_remove_edit_page_menu()

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


Source 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 );
	}
}


Top ↑

Changelog Changelog

Changelog
Version Description
1.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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