“Email in use” error hook?
-
Hi, I’m trying to hook into the “This email is already linked to an existing account” error to add that existing email to the current multisite blog.
Currently I have:
add_filter( 'um_submit_form_error', 'my_submit_form_error', 10, 2 ); function my_submit_form_error( $error, $key ) { if ($error == "This email is already linked to an existing account") { //Here I would like to take the existing email address and add it to the list of users for this site. } return $error; }
Does anyone have any idea how I could expose the submitted email address within this function, or does anyone have a better idea? Thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘“Email in use” error hook?’ is closed to new replies.