Filter: gk/gravityedit/user_registration/preserve_role
Keep the current user role or override with the role defined in the feed
Parameters
| Name | Type | Description |
|---|---|---|
| $preserve_role | bool | Preserve current user role. Default: true |
| $config | array | Gravity Forms User Registration feed configuration for the form |
| $form | array | Gravity Forms form array |
| $entry | array | Gravity Forms entry being edited |
Since
- 1.7.3
- 2.13.3: A feed's role only applies when the person saving the entry can change the user's role.
Source
Defined in includes/class-gravityview-inline-edit-user-registration.php at line 498