Skip to main content

Filter: gravityview/edit_entry/user_registration/preserve_role

Keep the current user role or override with the role defined in the feed.

Parameters​

NameTypeDescription
$preserve_roleboolPreserve current user role. Default: true.
$configarrayGravity Forms User Registration feed configuration for the form.
$formarrayGravity Forms form array.
$entryarrayGravity Forms entry being edited.

Since​

  • 1.15
  • 3.11.0: A feed's role only applies when the person saving the entry can change the user's role.

Source​

Defined in src/Extension/EditEntry/EditEntryUserRegistration.php at line 649