I’m not entirely clear on what you’re trying to do, but it seems you want to pass the user’s email address via a query string and determine the user by that. You can get the user’s ID for writing user meta values from the email value. Use the function get_user_by() to retrieve the user object by the user’s email.
$email = ( isset( $_GET['login'] ) ) ? $_GET['login'] : false;
$user = get_user_by( 'email', $email );
if ( $user ) {
update_user_meta( $user->ID, 'meta_key_to_save', $value );
}
Related Posts:
- Post-Registration, post-meta hook?
- How can I do customizations on login, registration and password recovery forms?
- How to hook into user registration process Before user registers
- Does wp_login hook fire on user registration?
- Is there a hook that runs after a user logs in?
- Is there a hook before the user is authenticated?
- WordPress auto login after registration not working
- Run javascript code after wp_login hook?
- How to get user-meta from Social Login registered users?
- after login that will redirect user role into a page
- update post meta using user_register hook not working
- How to modify an add_action() inside a loop of core function
- How to increase password requirements for registration [closed]
- Can user_register output the password?
- Firing a function AFTER redirect
- Detect change to user_meta and retrieve old and new values
- How to get session token of current user in wp_login hook?
- Custom action on login and “remember me”
- How to hook in after user’s registration email has been sent?
- Update a costume wp_usermeta key back to 0 every 24hours (time can be specified as needed)
- Should I encrypt the response that triggers an Ajax action? Is nonce sufficient?
- Save User Meta Email Address in Lowercase
- register_activation_hook not updating
- Add default user field to WooCommerce checkout [closed]
- Custom Front End Registration – How Does the Key work in the Password Set Request?
- How to change the default mail when admin approuved an user?
- Lock user information once fields have been filled in
- Send along login credentials with comment content
- Registration Hooks don’t appear to be working
- Is it possible to add the_content filter upon login?
- How to get user meta fields that have just been updated?
- Associate multiple email addresses with the same user account, so they can log in with either
- hooks for automatic approve user registration according to data in custom fields
- What hooks do I need to hook into to capture ever wp_user creation/change?
- Linking form to user meta fields
- Delay action unltil the untill previous (hoocked) action is completed
- ‘user_register’ hook – need to distinguish if created from wp admin panel
- add_action doesn’t work for my function
- wp_get_current_user Not working
- Create custom fields/meta data gender+country – radiobuttons and dropdown on register screen for these fields
- Which hook should I use for this scenario regarding the registration process and account/profile update?
- Problem in register activation hook and Copying folder
- How to add a new link to the default register form’s footer links?
- Changing login url
- Change password reqts with NO plugin without breaking resetpass link?
- Prefix user login_name and validate it is unique on Registration
- is_user_logged_in() doesn’t work after custom login and redirect
- Check if wp-login is current page
- Action hook for custom tax edit
- Is there a limit to hook priority?
- How to change “You must be logged in to post a comment.”
- Auto-retrieve YouTube Image for Thumbnail?
- How to check if which hook triggered the call to a function?
- Display sortable User meta column in admin panel user’s page
- Hooks are not executing
- Best possible way to get all options
- wordpress custom modules/widget areas on the page? can i make my own?
- How to add hook to the_title() and get_the_title()
- Hooking after get_header()
- How to get post ID in post_updated action hook?
- How can I set status=’publish’ for all featured images?
- Remove default user registration, login and subscriber profiles
- How do I force “users must be registered and logged in” on subsites?
- How to find a callback attached to a bbpress hook?
- Event Calendar using insert_post_data after save_post and insert_post after post_transition draft_to_schedule
- How to extend custom (non-core) blocks?
- Hooking into the init action will fire it too frequently?
- Implement Hooks Using Array
- Is there a JavaScript equivalent of get_post_field?
- Show reCaptcha on Custom Frontend Login & Register Form [closed]
- Auto Login After Registration
- How to distinguish on hook profile_update user registering, user resetting password or user updating profile?
- What speaks against using a custom login.php / register.php to wordpress?
- Embeding style into the header via the function.php
- How do I hook my function to run only after submitting login form
- ‘save_post’ hook not working in WP 3.5
- Change the Default Plugin page filter to Active intead of All
- How to execute a hook asynchronously?
- Issues with if, else, and elseif statements
- Modifying the wordpress login page and then referencing it with a shortcode problem
- “Seen by” Feature in posts [closed]
- How to hook in to the “output buffer” and add html content
- hook for loading page
- What hook to use to redirect based on $post
- How can I modify the header of RSS feed items?
- remove_action(‘save_post’) in function that was triggered by save post not working
- How to get template name or category before publish
- How can I insert custom html code inside a div dynamically?
- How WordPress understands what do with the (all) key in the $wp_filter array? [duplicate]
- WP-Automatic to run publish hooks
- Hide post completely and still reach it via cURL
- Where do I find “log in” and “register” link which are located on the top right corner?
- Why does hook priority affects admin menu permission error?
- Integrating Facebook Registration (and Login) on a WordPress page
- make a login system for site visitors
- How to disable login and registration pages?
- How do I do so that people can register on my wordpress site?
- Hook on opening a media/document
- ‘At a Glance’ dashboard: combining infos
- Getting fatal error when using manage_media_columns filter of WordPress