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

BP_XProfile_ProfileData constructor.


Parameters Parameters

$field_id

(int|null) (Optional) Field ID to instantiate.

Default value: null

$user_id

(int|null) (Optional) User ID to instantiate for.

Default value: null


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.