BP_XProfile_ProfileData::get_fullname( int $user_id )

Get fullname for provided user ID.

Description

Parameters

$user_id

(int) (Required) ID of the user to query.

Return

(mixed)

Source

File: bp-xprofile/classes/class-bp-xprofile-profiledata.php

	public static function get_fullname( $user_id = 0 ) {

		if ( empty( $user_id ) ) {
			$user_id = bp_displayed_user_id();
		}

		return xprofile_get_field_data( bp_xprofile_fullname_field_id(), $user_id );
	}

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.