xprofile_add_admin_menu()
Creates the administration interface menus and checks to see if the DB tables are set up.
Description
Return
(bool)
Source
File: bp-xprofile/bp-xprofile-admin.php
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | function xprofile_add_admin_menu() { // Bail if current user cannot moderate community. if ( ! bp_current_user_can( 'bp_moderate' ) ) { return false; } add_submenu_page( 'buddyboss-platform' , __( 'Profiles' , 'buddyboss' ), __( 'Profiles' , 'buddyboss' ), 'bp_moderate' , 'bp-profile-setup' , 'xprofile_admin' ); } |
Changelog
Version | Description |
---|---|
BuddyPress 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.