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

BP_XProfile_ProfileData constructor.


Description Description


Parameters Parameters

$field_id

(Optional) Field ID to instantiate.

Default value: null

$user_id

(Optional) User ID to instantiate for.

Default value: null


Top ↑

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

Top ↑

Changelog Changelog

Changelog
Version Description
1.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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