GravityView
2.17
The best, easiest way to display Gravity Forms entries on your website.
|
GravityView Edit Entry - Sync User Registration (when using the GF User Registration Add-on) More...
Public Member Functions | |
__construct (GravityView_Edit_Entry $loader) | |
add_hooks () | |
Add hooks to trigger updating the user. More... | |
generate_display_names ( $profileuser) | |
Generate an array of all the user display names possibilities. More... | |
get_feed_configuration ( $entry, $form) | |
Get the User Registration feed configuration for the entry & form. More... | |
load () | |
match_current_display_name ( $user_id) | |
Calculate the user display name format. More... | |
restore_display_name ( $user_id=0, $config=array(), $entry=array(), $password='') | |
Restore the Display Name and roles of a user after being updated by Gravity Forms User Registration Addon. More... | |
update_user ( $form=array(), $entry_id=0) | |
Update the WordPress user profile based on the GF User Registration create feed. More... | |
Protected Attributes | |
$loader | |
Private Attributes | |
$_user_before_update = null | |
GravityView Edit Entry - Sync User Registration (when using the GF User Registration Add-on)
Definition at line 20 of file class-edit-entry-user-registration.php.
__construct | ( | GravityView_Edit_Entry | $loader | ) |
Definition at line 32 of file class-edit-entry-user-registration.php.
References $loader.
add_hooks | ( | ) |
Add hooks to trigger updating the user.
gravityview/edit_entry/user_registration/trigger_update
Choose whether to update user information via User Registration add-on when an entry is updated? boolean | $boolean | Whether to trigger update on user registration (default: true) |
Definition at line 48 of file class-edit-entry-user-registration.php.
generate_display_names | ( | $profileuser | ) |
Generate an array of all the user display names possibilities.
object | $profileuser | WP_User object |
Definition at line 229 of file class-edit-entry-user-registration.php.
Referenced by match_current_display_name().
get_feed_configuration | ( | $entry, | |
$form | |||
) |
Get the User Registration feed configuration for the entry & form.
GF_User_Registration::get_single_submission_feed GravityView_Edit_Entry_User_Registration::match_current_display_name
$entry | |
$form |
gravityview/edit_entry/user_registration/preserve_role
Keep the current user role or override with the role defined in the Create feed boolean | $preserve_role | Preserve current user role Default: true |
array | $config | Gravity Forms User Registration feed configuration for the form |
array | $form | Gravity Forms form array |
array | $entry | Gravity Forms entry being edited |
Make sure the current display name is not changed with the update user method.
gravityview/edit_entry/user_registration/config
Modify the User Registration Addon feed configuration array | $config | Gravity Forms User Registration feed configuration for the form |
array | $form | Gravity Forms form array |
array | $entry | Gravity Forms entry being edited |
Definition at line 149 of file class-edit-entry-user-registration.php.
References $entry, GV\$form, and match_current_display_name().
Referenced by update_user().
load | ( | ) |
Definition at line 39 of file class-edit-entry-user-registration.php.
match_current_display_name | ( | $user_id | ) |
Calculate the user display name format.
int | $user_id | WP User ID |
In case we can't find the current display name format, trigger last resort method at the 'gform_user_updated' hook
Definition at line 198 of file class-edit-entry-user-registration.php.
References $format, $user, and generate_display_names().
Referenced by get_feed_configuration().
restore_display_name | ( | $user_id = 0 , |
|
$config = array() , |
|||
$entry = array() , |
|||
$password = '' |
|||
) |
Restore the Display Name and roles of a user after being updated by Gravity Forms User Registration Addon.
int | $user_id | WP User ID that was updated by Gravity Forms User Registration Addon |
array | $config | Gravity Forms User Registration Addon form feed configuration |
array | $entry | The Gravity Forms entry that was just updated |
string | $password | User password |
gravityview/edit_entry/restore_display_name
Whether display names should be restored to before updating an entry. Otherwise, display names will be reset to the format specified in Gravity Forms User Registration "Update" feed boolean | $restore_display_name | Restore Display Name? Default: true |
Don't restore display name:
WP_User | $restored_user | The user with restored details about to be updated by wp_update_user() |
WP_User | $user_before_update | The user before being updated by Gravity Forms User Registration |
WP_User | $user_after_update | The user after being updated by Gravity Forms User Registration |
array | $entry | The Gravity Forms entry that was just updated |
Definition at line 265 of file class-edit-entry-user-registration.php.
References $entry, Utils\get(), and gravityview().
update_user | ( | $form = array() , |
|
$entry_id = 0 |
|||
) |
Update the WordPress user profile based on the GF User Registration create feed.
array | $form | Gravity Forms form array |
string | $entry_id | Gravity Forms entry ID |
gravityview/edit_entry/user_registration/entry
Modify entry details before updating the user via User Registration add-on array | $entry | Gravity Forms entry |
array | $form | Gravity Forms form |
Definition at line 73 of file class-edit-entry-user-registration.php.
References $entry, GV\$form, Utils\get(), get_feed_configuration(), and gravityview().
|
private |
Definition at line 30 of file class-edit-entry-user-registration.php.
|
protected |
Definition at line 25 of file class-edit-entry-user-registration.php.
Referenced by __construct().