Function Forum_driver_wbb22->set_custom_field
Definitions
sources/forum/wbb22.php
- Set a Custom Profile Field's value, if the custom field exists. Only works on specially-named (titled) fields.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
---|---|---|---|---|---|---|---|
$member_id | MEMBER | No | No | required parameter | N/A | N/A | The member ID |
$field | string | No | No | required parameter | N/A | N/A | The field name (e.g. "firstname" for the CPF with a title of "cms_firstname") |
$value | string | No | No | required parameter | N/A | N/A | The value |
Preview
Code (PHP)
/**
* Set a Custom Profile Field's value, if the custom field exists. Only works on specially-named (titled) fields.
*
* @param MEMBER $member_id The member ID
* @param string $field The field name (e.g. "firstname" for the CPF with a title of "cms_firstname")
* @param string $value The value
*/
public function set_custom_field(int $member_id, string $field, string $value)
* Set a Custom Profile Field's value, if the custom field exists. Only works on specially-named (titled) fields.
*
* @param MEMBER $member_id The member ID
* @param string $field The field name (e.g. "firstname" for the CPF with a title of "cms_firstname")
* @param string $value The value
*/
public function set_custom_field(int $member_id, string $field, string $value)