bp_member_type_custom_metaboxes()
Custom metaboxes used by our ‘bp-member-type’ post type.
Description
Source
File: bp-core/admin/bp-core-admin-functions.php
function bp_member_type_custom_metaboxes() { $screen = get_current_screen(); add_meta_box( 'bp-member-type-label-box', __( 'Labels', 'buddyboss' ), 'bp_member_type_labels_metabox', null, 'normal', 'high' ); add_meta_box( 'bp-member-type-permissions', __( 'Permissions', 'buddyboss' ), 'bp_member_type_permissions_metabox', null, 'normal', 'high' ); add_meta_box( 'bp-member-type-wp-role', __( 'WordPress Role', 'buddyboss' ), 'bp_member_type_wprole_metabox', null, 'normal', 'high' ); if( 'add' != $screen->action ){ add_meta_box( 'bp-member-type-shortcode', __( 'Shortcode', 'buddyboss' ), 'bp_profile_shortcode_metabox', null, 'normal', 'high' ); } remove_meta_box( 'slugdiv', bp_get_member_type_post_type(), 'normal' ); }
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.