[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-xprofile/classes/ -> class-bp-xprofile-field-type-wordpress.php (summary)

BuddyPress XProfile Classes.

File Size: 242 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 3 functions

  __construct()
  set_field_value()
  get_field_value()

Functions
Functions that are not part of a class:

__construct()   X-Ref
Constructor for the WordPress field type.

since: 8.0.0

set_field_value( $retval = false, $field_args = array()   X-Ref
Sets the WordPress field value.

param: boolean $retval Whether to shortcircuit the $bp->profile->table_name_data table.
param: array $field_args {
return: boolean Whether to shortcircuit the $bp->profile->table_name_data table.
since: 8.0.0

get_field_value( $user_id, $field_id = 0 )   X-Ref
Gets the WordPress field value during an xProfile fields loop.

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

param: integer $user_id The user ID.
param: integer $field_id The xProfile field ID.
return: array An array containing the metadata `id`, `value` and `table_name`.
since: 8.0.0



Generated: Fri Mar 29 01:01:02 2024 Cross-referenced by PHPXref 0.7.1