apply_filters( 'um_predefined_fields_hook', $fields ) → {array}
Filters Ultimate Member predefined fields.
Parameters:
Name | Type | Description |
---|---|---|
$fields |
array | Predefined fields. |
- Since:
- 1.3.x
- Source:
Returns:
Predefined fields.
- Type
- array
Example
function my_predefined_fields( $fields ) {
$fields['um_custom'] = array(
'title' => __( 'Custom text field', 'ultimate-member' ),
'metakey' => 'um_custom',
'type' => 'text',
'label' => __( 'Custom text field', 'ultimate-member' ),
'required' => 1,
'public' => 1,
'editable' => true,
);
return $fields;
}
add_filter( 'um_predefined_fields_hook', 'my_predefined_fields' );