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
function my_form_fields( $fields, $form_id ) {
// your code here
return $fields;
}
add_filter( 'um_get_form_fields', 'my_form_fields', 10, 2 );