Description
Set the value of a user contact field from the $options array
Usage
oiku_set_user_contact_user_meta( $user_id, $options, $field );Parameters
- $user_id
- ( ID ) required – user ID
- $options
- ( array ) required – reference to the options array
- $field
- ( string ) required – the name of the field to extract
Returns
voidSource
File name: oik-user/admin/oik-user.phpLines:
1 to 7 of 7
function oiku_set_user_contact_user_meta( $user_id, &$options, $field ) { $value = bw_array_get( $options, $field, null ); if ( $value ) { unset( $options[$field] ); bw_update_user_meta( $user_id, $field, $value ); } }View on GitHub
Invoked by
Calls
1 to 2 of 2
