You are probably looking for the user_exists
function. http://codex.wordpress.org/Function_Reference/email_exists
This function will check whether or not a given email address ($email) has already been registered to a username, and returns that users ID (or false if none exists).
If the email address does not exist (user_exists
returns false
), you may want to use the wp_create_user
function. http://codex.wordpress.org/Function_Reference/wp_create_user
The wp_create_user function allows you to insert a new user into the WordPress database
Only do that if you want to create a WordPress user though, which you may or may not. I’m a bit confused by this part of the question.
Related Posts:
- How do I get the current edit page ID in the admin?
- Adding a second email address to a completed order in WooCommerce [closed]
- Check if post is being published for the first time, or is an already published post being updated
- Can’t get post ID in functions.php?
- Using email_exists() wp function in an ajax request
- How do I call wp_mail from HTML?
- Trouble using antispambot()
- Contact Form 7 – Delay auto responds
- wp-comment author- url +, email filter hook
- Deprecated function get_user_by_email($email)
- How to change this simple code so that it sends the email notification after payment in WooCommerce?
- How to Extend login session times to a Month
- Paragraph spaces in email template function
- get_current_user_id() always return 0 in if else statement
- Problem with email function
- Author Page User id in functions.php for non login user
- What add_action reference should I be using or should I use do_action?
- Mail function not working with user accounts
- Create input select image URL?
- Syling Custom Fields echo’s from from functions.php
- Using array page name together with page id to deregister script
- get USER ID in functions.php using user_register action
- Welcome Mails based on user role
- Do something when user creates post (that’s pending)
- How to hook wp_mail to add a custom email as BCC for each sent email?
- Using input_attrs() Multiple Times Within One Customizer Control
- Programatically add options to “add new” custom field dropdown
- Excluding iPad from wp_is_mobile
- Use ‘add_theme_support’ instead of ‘add_custom_image_header’ In WordPress 3.4
- Functions.php: If its single?
- Remove Menu Page Giving Error
- How to add another user to this remove_menu function?
- RSS Feed has no styles in chrome – function to add one?
- How to change menu icon which is overriden (i.e. by WooCommerce) [closed]
- How to get user_id from wordpress database inside ajax function?
- modify a function filter
- Change the slug of a particular page every x hours
- Accepted arguments value in hook functions
- Best practices for multiple Custom Feeds functions
- Print Post Parent Title
- Which action hook to use for function?
- Change size and crop medium_large images
- Shortcode pagination not advancing
- translate the_title() with .po & .mo
- Right way to update widget on dynamic new input field
- custom rss templete
- Remove elementor header and display default theme header
- Move ‘current-menu-item’ class on #adminmenu li from Posts to Pages for Taxonomy Edit Screen
- WordPress on AWS Auto scaling and ELB giving 503
- enqueue styles for only mobile wp
- WordPress PHP Conflicting User Sessions
- Registration Hooks don’t appear to be working
- is_author(get_current_user_id()) returns false when author id and user id match
- How to use selected WordPress functions?
- Change slug shortlink “/?p=” base in WordPress
- unnecessary request call for js and css after calling wp_dequeue_script
- Functions Error: Impacting Galleries
- How to use author meta in shortcode?
- How to cut off question mark in url with functions.php
- How to rewrite wordpress search to work on specific category
- Theme JS is available but theme CSS isn’t
- Genesis Framework: How to exclude a specific author from archive custom loop
- How to Add Shortcode to html img code?
- Logout Redirect and also WP-login.php Redirect
- Proper Way to Load stylesheet on Condition
- Is it possible to use add_filter in an included file in the child theme’s functions.php?
- Insert Content Before div#main from the functions.php File
- Insert function insde body tag
- How do I place a function in a standalone page?
- Problem in using Customizer
- Conditional custom menu?
- What function actually renders the wp_admin_bar ? How can I call it?
- Do I Need to Prefix Variables Inside Functions?
- redirecting a URL if accessed directly
- Detect Ajax call inside pre_get_posts function
- Render page with specific id from functions.php
- Display Child Pages if no child Exists Display Siblings
- How to show ACF value under post/page title in wp-admin
- What is wp_get_post_tags for media tags?
- Filter works on last selection but no others
- How do I trigger WP CLI DB export using a PHP function?
- WordPress does not load jQuery
- How do i tweak my wp Post title base on category of the post
- I’m creating a online store for my website, my aim is to add description to products in home page only how can i achieve it?
- Menu and category highlighting for a single post
- Redirect specific author posts to another url
- I need to ‘wp_dequeue_script’ and ‘styles’ and ADD a bunch of other css and js
- True email confirmation for registration (keeping unvalidated users from user table)
- Code I am placing in the wp_footer is going outside the entire HTML frame!
- WordPress – Custom Nav menu for logged in users – Shopkeeper theme
- Change post count on tag/terms pages to 10
- How to use if (is_page_template (”))
- wordpress function through ajax not being called
- How to assign results to variables?
- Hide certain post types from editors
- Automatically add custom fields (post_meta) to all published posts, hourly, via wp_cron?
- How to mirror exactly the left admin menu on front end?
- Fatal error after changes to functions.php, even with original file
- update_post_meta after form is submited
- Make a table out of meta box