BP_XProfile_ProfileData::__construct( int|null $field_id = null, int|null $user_id = null )

BP_XProfile_ProfileData constructor.

Description

Parameters

$field_id

(Optional) Field ID to instantiate.

Default value: null

$user_id

(Optional) User ID to instantiate for.

Default value: null

Source

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

	public function __construct( $field_id = null, $user_id = null ) {
		if ( !empty( $field_id ) ) {
			$this->populate( $field_id, $user_id );
		}
	}

Changelog

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