You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: gravity-forms/gw-user-registration-update-by-email.php
+42-1Lines changed: 42 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,11 +6,14 @@
6
6
* Create User Registration feeds that will update the user by the submitted email address, allowing non-logged-in users
7
7
* to be targeted by GFUR update feeds.
8
8
*
9
+
* Optionally supports changing the user's email address by specifying a separate "New Email" field via
10
+
* the `new_email_field_id` argument.
11
+
*
9
12
* Plugin Name: Gravity Forms User Registration - Update by Email
10
13
* Plugin URI: https://gravitywiz.com/
11
14
* Description: Create User Registration feeds that will update the user by the submitted email address, allowing non-logged-in users to be targeted by GFUR update feeds.
12
15
* Author: Gravity Wiz
13
-
* Version: 0.7
16
+
* Version: 0.8
14
17
* Author URI: https://gravitywiz.com/
15
18
*/
16
19
class GW_UR_Update_By_Email {
@@ -23,6 +26,16 @@ public function __construct( $args = array() ) {
23
26
$this->_args = wp_parse_args( $args, array(
24
27
'form_id' => false,
25
28
'field_id' => false,
29
+
/*
30
+
* Specify a separate Email field that contains the user's new/desired email address.
31
+
*
32
+
* When set, the feed's Email mapping is used to look up the existing user (current email),
33
+
* and the new email field value is used to update the user's email address. If the new email
34
+
* field is left blank, the existing email is preserved.
35
+
*
36
+
* When not set, the feed's Email field is used for both lookup and update (default behavior).
37
+
*/
38
+
'new_email_field_id' => false,
26
39
/*
27
40
* Require that the logged-in user have a specific capability to be able to edit users by email.
0 commit comments