Filter: um_get_form_fields

apply_filters( 'um_get_form_fields', $fields, $form_id ) → {array}

Filters the form fields.

Parameters:
Name Type Description
$fields array

Form fields.

$form_id int

Form ID. Since 2.6.11

Since:
  • 2.6.11 Added Form ID attribute.
Source:
Returns:

Form fields.

Type
array
Example

Extend form fields.

function my_form_fields( $fields, $form_id ) {
    // your code here
    return $fields;
}
add_filter( 'um_get_form_fields', 'my_form_fields', 10, 2 );