[ 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.

return: boolean Whether to shortcircuit the $bp->profile->table_name_data table.
param: boolean $retval Whether to shortcircuit the $bp->profile->table_name_data table.
param: array $field_args {
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.

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



Generated: Fri Sep 24 01:01:36 2021 Cross-referenced by PHPXref 0.7.1