Look at the opening form element. The value for action determines where the form data is being posted to. By changing the value you can simply tell the form to redirect to itself rather than another page.
The codex offers an alternative approach on generating the mark-up for the necessary form:
http://codex.wordpress.org/Customizing_the_Login_Form#Make_a_Custom_Login_Page
Here’s a much more in-depth tutorial:
http://digwp.com/2010/12/login-register-password-code/
You could always just use or fork an already existing popular Ajax based log-in plugin:
Related Posts:
- Adding “Remember Me” in custom login
- WordPress 4 invalid username special charachters issue
- Constructing a custom login form using ajax
- Remove username in emails or swap username for email
- WordPress shows registration link for non logged users
- Is it necessary to sanitize wp_set_password user input?
- Anyway to output the registration form like the login form with wp_login_form()?
- How to give new users two specific user role options upon WordPress user registration
- Wp-login appears White Screen, Error: Cannot modify header information
- User management system similar to wordpress one?
- Removing “There is no account with that username or email address.” error message in “/wp-login.php?action=lostpassword”
- Infinite loop when logging out using custom login form
- Issues adding Recaptcha v3 to WordPress Registration
- Need help with AJAX login to call php in functions.php to handle redirects based on user cap (role)
- Newbie question. Login/Registration. New PHP page
- Registration form not registering First and Last name
- How do I do so that people can register on my wordpress site?
- How to change PHP variables with AJAX request in WordPress
- How to change this ajax function to submit to the default wordpress content area instead of the custom field ‘seller notes’?
- How to use wp_ajax_set_post_thumbnail?
- Having trouble creating two shortcodes, one for logged in user and one for visitors
- Call WP Rest-Api to GET /users/me returned NOTHING in console
- Problem in auto login after registration
- How can I get my WordPress plugin to receive data and relay it in an ajax/php request to a remote server that requires authentication?
- register_block_type is not working properly
- Uploading/integrating custom user registration page
- get_the_author_meta( ‘ID’ ) just return 1
- Unable to login after registration
- Submit remote form to wordpress REST API and save data to custom post type
- Update $wpdb query with AJAX
- ajax contact form not submit message
- WooCommerce REST API AJAX Auth – 401 response
- Restrict wordpress access to logged users only
- Can an AJAX callback function access a PHP variable which was defined during initial page load?
- AJAX and custom pages
- custom mailchimp form using HTTP API
- $.ajax results in 403 forbidden
- 400 bad request admin-ajax file upload
- Menu not updating for logged in users after redirect
- Can’t make lazy load for my site, help!
- Including user data in “new user notification email”
- WordPress is setting from header wrongly in wp_mail
- AJAX numerical pagination problem in TwentyFifteen-child theme
- How to reload a php script, using AJAX and jQuery
- Change WooCommerce currency programmatically on AJAX request
- wp_ajax_ 400 Bad Request
- Filtering custom posts by using checkboxes for taxonomy in an ajax loop always gives server 500 error
- AJAX to add to cart multiple products woocommerce
- how to use auth_redirect() redirect visitor to login page if they are not login when they click account and order page?
- use with class file into wp_ajax hook
- Display specific page if user signed in
- update_post_meta Not Processing Array Data (Not Sure What I Am Missing)
- WordPress AJAX PHP(html) file that is within WordPress Loop
- Change Login or Logout text based on status
- Why my Ajax events are no longer detected after dynamic change of shortcode content
- wp_set_object_terms returns 500 error when called through AJAX function
- Refresh page after login with litespeed cache
- How can i send id of the currently posted form data through json response in custom wordpress plugin?
- Why the responseText containing those two arrow signs at the beginning
- Help hooking into user_register
- Cannot successfully execute AJAX script to call function.php specific function. Using XAMPP localhost to test
- Cannot transfer ajax post data from js to php file
- WordPress Ajax filter: Create two loops for different output styles?
- autocomplete in wordpress using ajax with json-data
- How to auto-generate random numbers in username?
- Redirect after login depending on the URL
- Contactform7: display results from CURL
- WordPress ajax filter returning all posts when it should be filtering by category
- wordpress dependent dropdownlist using post type is not working
- Top Authors list by highest post views with Ajax pagination
- Redirecting the lost password page request when using a custon login page
- How do I send a POST request with params with WordPress REST API
- Offset with ajax load more posts duplicates
- Input field duplicates on form submit by jQuery
- ajaxurl usage for a custom function
- Following/Followers Users list Using Ajax Pagination inside Author Profile
- How to echo a PHP code into WooCommerce variation product?
- How can i get the same ajax result using WP REST API instead of admin-ajax?
- How to call a function from functions.php with ajax?
- wp-login.php?redirect_to=https problem
- Custom theme admin-ajax.php 400 (Bad Request)
- ajax polling with admin-ajax.php
- Remove item from post_meta array via AJAX
- Ajax in a class instantiated via shortcode
- is_user_logged_in() not working in homepage
- Custom Post type Ajax search results
- Attaching an upload to a user
- number of posts with “Load More”
- Ajax wordpress function showing source code in alert and not value of input field?
- How to send Ajax Call from frontend without using wp_localize_script in Theme
- wordpress more than one ajax request at the same time issue
- Singleton in plugin fails on AJAX call (Plugin initialzed again)
- wp_send_json erase last value
- Include search tags and users in my search results system
- defined (‘ABSPATH’) false after AJAX post to other PHP-file
- Creating a custom register form
- Prepared DB Query from _POST array
- Woocommerce variable products are being added to the card on the homepage (ajax)
- How to load WP_Editor JS files manually (with AJAX)?
- Check if a user is logged into my WordPress site which is on a different server