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

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

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.