I’ll guess that you’re testing this by entering your admin email address. Have a look at the Codex page for email_exists()
:
If the E-mail exists, function returns the ID of the user to whom the E-mail is registered.
If you’re entering the email address of the first user created for a site, the user ID will be 0
, so if ( email_exists($email) )
for that user will evaluate false. The example given on that page does not account for this situation.
Related Posts:
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- Why is my ajax call refreshing the page?
- Admin-ajax.php is dying “0” without processing function
- How to create popup same as wordpress popup feature
- Only execute jQuery function(on document ready) on the page has shortcode from plugin [duplicate]
- Ajax contact form widget plugin data not insert in database
- Ajax request sends url rather than data
- wc_get_template_part doesnt display the content [duplicate]
- WordPress Ajax request “Failed to load resource: the server responded with a status of 400 ()”
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- Overwriting Plugin’s Ajax callback function from theme
- WordPress ajax not working in registration
- Ajax, jQuery and WordPress
- How to get site homepage from plugin?
- Load css classes after using ajax calls
- Jquery post responses 500 error after some time and lastly an 503 error
- What’s the preferred method of writing AJAX-enabled plugins?
- Handling jQuery Component Collision
- AJAX Call Via Vanilla JavaScript In WordPress Plugin Development
- Editor not displaying dynamically after clicking on the button
- How to fetch serialized data from wordpress options
- Execute a function using ajax
- Ajax call doesn’t work in frontend but it’s working in backend (when I’m logged in)
- How do I use WordPress PHP functions in my Javascript code?
- What’s the point of using WordPress’s built in admin-ajax.php?
- How to bulk send emails
- How to remove an Ajax action
- WordPress plugin for mail subscriptions [closed]
- action-scheduler vs wp-background-processing
- jQuery function didn’t work in my plugin
- jQuery Plugin to use WordPress functions in AJAX request
- Handling jQuery Component Collision
- Ajax gives 400 error
- WordPress Plugin Page is Loading in Admin Content Container Instead of Separate Page
- WooCommerce get_price returning wrong price when used via ajax
- Simple ajax call not working in wordpress plugin
- Form isn’t inserting data into database with ajax plugin
- AJAX search posts and pages
- __callStatic method handler passed to add_action causes bug in PHP
- Best place for if/else piece of code related to custom plugin?
- jQuery for custom plugin not working with Divi theme
- Ajax call returning 0
- How can I inject options into an select tag inside the widget form?
- Display wordpress post’s in popup?
- How to prevent plugins from loading jQuery
- Using color picker in plugin, does input attribute order matter?
- Create shortcode to echo javascript
- how to insert data in wordpress table usnig jquery ajax
- What are the Best Practises When Using AJAX in Plugin Development?
- How to pass variables to a function argument using add_action [duplicate]
- Admin AJAX doesn’t work in plugin admin page – Even though code is copied verbatim from WordPress Codex
- AJAX fileupload – TypeError: not a function ajaxSubmit()
- Submit Form data to another page via Ajax (WordPress Way)
- How to add an element right after the article using jQuery?
- How to display checked posts on another page over AJAX? (like comparasion style)
- WordPress front end AJAX. Return 0 :?
- Using WordPress to build membership Page
- SMTP Error: Could not authenticate [closed]
- Save user total active time after login in wordpress [closed]
- Asynchronous request in wordpress
- sending different email notification while registration based on user role
- How do I make sure that my plugin only runs on article detail pages?
- WordPress API functions not working at AJAX functions.php call
- Calling a class method instantiated by ajax call in wordpress [closed]
- jQuery code didn’t run on my plugin
- The Events Calendar Plugin – List View Background Colour Issue [closed]
- best way to run a php script away from the template?
- Pass PHP variable to javascript
- How do I reinit WordPress plugins dynamically using jS?
- Error datatable whit ajax
- WP Ajax DB issues
- Cannot pass value variable to WP AJAX functions
- How to properly enqueue jQuery knob on WordPress without conflict?
- jQuery Ajax not loading page with ACF fields
- JS working when used normally but not in wordpress
- WordPress Thickbox Navigation Issue in Gallery
- Dynamic input fields in WordPress Plugin
- WordPress ajax error 400 bad request for sending data to remote site [duplicate]
- Overwrite js code using WP_Footer
- Not displaying Woocommerce product page in lightbox
- admin-ajax.php returning 0
- ajax voting for custom post type
- Storing Array of values into wordpress options
- My ajax request don´t work and return 0
- WordPress environment not loading properly
- Can’t find variable is_single in my jQuery plugin
- How can I use wp_ajax_response for front-end error reporting?
- WordPress Feedback popup with date saved into table
- How to limit each front-end user to view just his own uploaded files on Amazon S3?
- Not getting result using ajax on wordpress
- How to customize ‘recurrance’ of’ wp_schedule_event’?
- How to Add Jquery FullCalendar in wp plugin in admin
- AJAX doesn’t pass variables to the php function in the plugin
- Hyperlink to execute PHP
- WordPress plugin ajax post parameter
- Capturing POST data
- Help me with my first very basic plugin
- Ajax in Plugins: returns the whole page
- Integrating WordPress Content into a jQuery Slider
- wordpress Ajax success doesn’t return the value