BP_XProfile_User_Admin::register_xprofile_user_admin()

Setup xProfile User Admin.


Description Description


Return Return

(BP_XProfile_User_Admin)


Top ↑

Source 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;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.