fluentform_user_registration_field_defaults

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 the pro version src/Integrations/BuddyIntegration/FluentFormBuddyBoss.php

Powered by BetterDocs

Leave a Reply

Your email address will not be published. Required fields are marked *