BP_XProfile_User_Admin::register_xprofile_user_admin()

Setup xProfile User Admin.

Description

Return

(BP_XProfile_User_Admin)

Source

File: bp-xprofile/classes/class-bp-xprofile-user-admin.php

	public static function register_xprofile_user_admin() {

		// Bail if not in admin.
		if ( ! is_admin() ) {
			return;
		}

		$bp = buddypress();

		if ( empty( $bp->profile->admin ) ) {
			$bp->profile->admin = new self;
		}

		return $bp->profile->admin;
	}

Changelog

Changelog
Version Description
BuddyPress 2.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.