BP_XProfile_Field_Type_WordPress_Textbox::get_field_value( integer $user_id, integer $field_id )

Gets the WordPress field value during an xProfile fields loop.


Description Description

This function is used inside BP_XProfile_ProfileData::get_data_for_user() to include the WordPress field value into the xProfile fields loop.


Top ↑

Parameters Parameters

$user_id

(integer) (Required) The user ID.

$field_id

(integer) (Required) The xProfile field ID.


Top ↑

Return Return

(array) An array containing the metadata id, value and table_name.


Source Source

File: bp-xprofile/classes/class-bp-xprofile-field-type-wordpress-textbox.php

	public function get_field_value( $user_id, $field_id = 0 ) {
		if ( ! $this->wp_user_key ) {
			$this->wp_user_key = self::get_field_settings( $field_id );
		}

		return parent::get_field_value( $user_id, $field_id );
	}


Top ↑

Changelog Changelog

Changelog
Version Description
8.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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