Description #
This filter returns default values for the user registration fields.
apply_filters('fluentform/user_registration_field_defaults', $fields, $formId);
Usage #
add_filter('fluentform/user_registration_field_defaults', function ($fields, $formId) {
$fields['bboss_profile_fields'] = [
[
'label' => '',
'item_value' => ''
]
];
$fields['bboss_profile_type'] = '';
return $fields;
}, 10, 3);
Parameters #
- $fields (array) Default Fields
- $formId (int) Form ID
Placement #
This code should be placed in the functions.php file of your active theme.
Source Code #
This filter is located in FluentFormPro\src\Integrations\UserRegistration\Bootstrap -> getIntegrationDefaults($settings, $formId = null)