WordPress “login” process assumes that a user name is given. If there is no user name, there is nothing to authenticate and most likely your code is not being reached at all. If you want to have your own form, just write your own authentication.
The other path you can follow is to change the label of the user field in the “normal” form to “phone” without replacing any other thing in the HTML itself. If you do that all the expected filters and actions should be triggered and your code is more likely to work.
Related Posts:
- Login with email (WP Modal Login)
- Possibility to login without password
- Redirect default login page to a custom page [duplicate]
- Login with OpenID, similar to Stack Exchange sites?
- How can I make an Ajax login form work with FORCE_SSL_ADMIN enabled?
- Change success message in plugin Theme my login
- How to get Login Error messages on a custom template
- How can a Firebase user registration and login be integrated into a WordPress site?
- How to get user-meta from Social Login registered users?
- Auto login using Active Directory and Windows Authentication
- Which hook should be used to validate custom form fields on the login form?
- How can I make content disappear when a user logs in?
- How to create custom LOGIN and REGISTRATION forms?
- Tracking last login and last visit
- login to wordpress with Get variables instead of Post
- Prevent Brute Force Attack
- Check if the front end user is log in or not
- wordpress custom login successful redirect hook
- How to create a word press user with hashedpassword
- WordPress with CAS+LDAP and standard WP accounts
- Is there any good tutorial to write custom login, registration and password recovery forms? [closed]
- Use WordPress with a custom OAuth2 provider
- Cannot access wp-admin after disabling all plugin
- wp_authenticate but not logged in
- Force [wordpress_social_login] shortcode to display where it is embedded [closed]
- Cannot login to ADMIN even after changing password in phpmyadmin
- How do i login when i cant access wp-login.php?
- Why is my staging subdomain not sending wordpress_logged_in cookies?
- Single central login for front end users from any site
- Is there an earlier hook than login_head or login_enqueue_scripts?
- How can I force users to a particular subdomain to log in for MU (Multisite)?
- Plugin: Google Analytics for Dashboard error – Timestamp is too far from current time
- “Request has expired” with “Make your site social” (Gigya) plugin
- How to save generated JWT token to cookies on login?
- Redirect already logged in users away from a page to a specific page base on user role
- Contributive page where people logged in can write
- Login cookies set as wrong domain
- How to use login_redirect with a user capability
- Login Customizer doesn’t change the background of the register form
- easy steps to make front end form without plugin
- Change wp-login to custom URL login page
- Login problem after installing my written plugin [closed]
- Too many login attempts
- Get ‘Headers already sent’ error for the plugin I am creating when I try to login
- Custom Login Page — wp_signon Headers Already Sent?
- Theme My Login Shortcode Doesn’t Return Anything
- how do i change my website facebook login button to another text immediately user login? [closed]
- WordPress unable to write files in the server
- Custom PHP Page Using WordPress login
- How to Use the Filter “sidebar_login_widget_form_args”
- Manage PDF downloads and protected pages
- If I use an alternative login (e.g. CAS or other SSO) plugin, is my site protected from the recent brute force login attempts?
- login in wordpress using gmail account
- How can I replace content on site generated from plugin without changing plugin
- Janrain/Simple Modal under Redirected Domain
- Linking form to user meta fields
- WordPress Multisite Profile Picture Sync Error with Nextend Social Login Plugin
- Plugin or ways to limit number of users logging in the website,
- force logged in user to stay in the dashboard
- Share login credential with QR code
- Which membership plugin for a simple sign in? Personal areas for customers
- Discern a specific plugin’s action hooks
- wp_set_password() does not work!
- Login/password protected “client page”
- WordPress Admin login redirect to homepage
- https rewrite not working for All in one security Brute force > rename login url
- On button click, redirect users to registration page instead of another page
- How can I show login popup when user clicks on download button
- When the user entered an unauthorized url redirect to login page
- How to show private pages based on a user’s role?
- Why does WordPress use cookies for /wp-admin and /wp-content/plugins for non-admin users [duplicate]
- using wordpress login details for other website / application / forum?
- wp_signon returns user, in popup window, but the user is not logged in
- How to Create Custom Dashboard for my Laundry Website?
- wp_login_form() ignoring login_form action hook
- User content database [closed]
- Auto-login from backend
- AJAX login without a plugin does not work. when add a action to function.php
- wp-admin will not redirect to wp-login.php
- Adding google authenticator and use only email address of user
- Adding a Filter to Sidbar Login Plugin to Change Login Button Lable
- First argument is expected to be a valid callback for cp_admin_init and _canonical_charset
- how to protect wordpress website
- WordPress ReAuth =1 Loop with wpCAS
- HTTP Error 403 When Trying to Login
- Advice on setting up private site
- Checking url from plugin [duplicate]
- What plugin(s) are best for this User registration task? [closed]
- Trouble Removing Plugin [closed]
- Change All Login/Signup Links in Plugin
- How do I to override login redirect on specific pages?
- How to link that “logged in” in “you must be logged in to post a comment” with custom login page on WordPress?
- plugin for different writers [closed]
- How to resolve these findings from security audit
- ERROR: Cookies are blocked due to unexpected output – no access to FTP
- How to validate password length in wordpress
- How to Find WordPress site has backdoor login Codes
- How to create a custom wordpress plugin for a specific functionality?
- WordPress Homepage Login
- I cannot login after installing the wp-login timeout setting plugin