bp_remove_member_type_metabox()
Remove profile type metabox for users who doesn’t have permission to change profile types.
Description
Source
File: bp-members/bp-members-functions.php
function bp_remove_member_type_metabox() { if ( ! current_user_can( 'manage_options' ) ) { remove_meta_box( 'bp_members_admin_member_type', get_current_screen()->id, 'side' ); } }
Changelog
Version | Description |
---|---|
BuddyBoss 1.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.