apply_filters( 'um_whitelisted_metakeys', $whitelisted_metakeys, $form_data ) → {array}
Filters whitelisted usermeta keys that can be stored inside DB after UM Form submission.
Parameters:
Name | Type | Description |
---|---|---|
$whitelisted_metakeys |
array | Whitelisted usermeta keys. |
$form_data |
array | UM form data. |
- Since:
- 2.6.7
- Source:
Returns:
Whitelisted usermeta keys.
- Type
- array
Example
function my_um_whitelisted_metakeys( $metakeys, $form_data ) {
$metakeys[] = 'some_key';
return $metakeys;
}
add_filter( 'um_whitelisted_metakeys', 'my_um_whitelisted_metakeys', 10, 2 );