bp_members_remove_edit_page_menu()
Remove rogue WP core Edit menu when viewing a single user.
Description
Source
File: bp-members/bp-members-adminbar.php
function bp_members_remove_edit_page_menu() { if ( bp_is_user() ) { remove_action( 'admin_bar_menu', 'wp_admin_bar_edit_menu', 80 ); } }
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.