Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

Where is the php file, that does the checks for login information?

You don’t want to be messing around with that.
Look at the following hook:
https://codex.wordpress.org/Plugin_API/Action_Reference/wp_login

You should do something like:

function check_test_user() {
// Your code here
}

add_action('wp_login', 'check_test_user');

The hook will run as part of the Login process and saves you modifying core WordPress files.

Related Posts:

  1. Disable WordPress 3.6 idle logout / login modal window / session expiration
  2. How to fake a WordPress login?
  3. Is wp_login_form secure on a non secure page?
  4. Custom user roles are unable to login
  5. Hide wp-login.php but not the widget
  6. Can I programmatically login a user without a password?
  7. Is there any way to rename or hide wp-login.php?
  8. How can I redirect user after entering wrong password?
  9. Increase of failed login attempts, brute force attacks? [closed]
  10. What is $interim_login?
  11. Custom login form
  12. Adding extra authentication field in login page
  13. Prevent wp_login_form() from redirecting to wp-admin when there are errors
  14. What exactly is ReAuth?
  15. Login members using web services
  16. How do I change the language of only the login page?
  17. How to pass users back and forth using session data?
  18. Avoid to load default WP styles in login screen
  19. Can not login with correct username and password
  20. How can I add a custom script to footer of login page?
  21. Brute force attack?
  22. Need to execute a cron job
  23. How to keep always logged in development environment
  24. Log in from one wordpress website to another wordpress website
  25. I want to disable E-Mail verifcation / activation when a user signs up for my WordPress site
  26. custom login page redirect to logged in user profile page
  27. Receiving “This content cannot be displayed in a frame” error on login page
  28. Action wp_login_failed not working if only one field is filled out
  29. How to customise wp-login.php only for users who are setting a password for the first time?
  30. WordPress Login Footer URL
  31. Remove built in wordpress login and use only google auth
  32. Websites defaced by uploading script using theme editor
  33. Make wordpress admin failed login attempt return 401
  34. Change Login Page for a Multisite Subsite
  35. Positioning the “Lost your password?” and “← Back to Site”
  36. send users logging in from wp-login.php directly to home page of site, rather than dashboard
  37. how to update current logged user username
  38. Validate Custom Login field
  39. How to get login data (session) outside WordPress?
  40. Calling wp_signon doesn’t log the user in
  41. How to implement Google reCaptcha without installing a plugin?
  42. Is it possible a one click user registration with Facebook or Twitter (or other Social Networks)?
  43. WordPress login urls
  44. Are there ways of logging in that bypass wp-login.php altogether?
  45. Add class to input form in login form
  46. Allow access to a page for admins only
  47. Customizing login error messages
  48. Store brute-force IP addresses
  49. Customizing the WordPress login form
  50. Restricting frontend acess based on user role otherwise redirect to login form
  51. how to restrict user login whenever if a user puts on hold by editing wp-login action?
  52. How to display username and password after registration
  53. How to create a private login page for admin.?
  54. How do I force “users must be registered and logged in” on subsites?
  55. WordPress Security – How to block alternative WordPress access
  56. deny IPs from wp-login using .htaccess
  57. Protecting WordPress login page
  58. Passing username to login screen
  59. Login error redirecting to wp-login page
  60. wp-admin folder, brute force, and password protection
  61. Sniffing wordpress user’s credentials
  62. How can I prevent my custom form from redirecting to wp-login?
  63. reset password link redirect to login page
  64. How do I replace “Username” in the WordPress login form?
  65. Custom Login iframe doesn’t work
  66. Password reset – Disabled for LDAP accounts
  67. How to Get Logged-in to “Remote WP Site” from my local script (in Same Browser)?
  68. Replace dash with space in username on login
  69. Autologin only working the second time
  70. replace wp-login.php login forms via a hook & use custom forms with wp-login form validation
  71. disable site_url redirect in wp-login.php
  72. Auto login between word press subdomain and a .net website
  73. Two factor authentication
  74. Disabling standard registration login with username/email and password?
  75. How to change wordpress Log In text
  76. WordPress error on log out ‘Not Permitted’ and can’t log out
  77. Redirect wp-login
  78. Does WordPress (or a plugin) reveal login credentials to admin?
  79. Is the login encrypted before it is sent? If so how to do I encrypt it the same way?
  80. WordPress login security
  81. Why isn’t the login page rate limited by default?
  82. Form Action submit over https
  83. How to generate “WP_Error” Object for user login?
  84. Is there anyway to get the inputted password string from the login form?
  85. Login and Forgot password in Lightbox
  86. Forcing frontend login with UI switch
  87. How can I password protect a WordPress site without requiring users to log in?
  88. Input sanitation
  89. How to Prevent Brute Force Attack on WordPress
  90. Prevent display password on wp-login.php
  91. Advice on redirect to lock site from unauthorized users
  92. Possibility to login without password
  93. Change default login auth
  94. wordpress login without password just email address (NO 2 factor authentication with email)
  95. Allow Access to Home Page and Login Screen but Nothing Else (unless logged in)
  96. WordPress SSL not working [closed]
  97. Error on WordPress Login
  98. Access log “POST /wp-login.php HTTP/1.0” 400
  99. I want login using email not username wordpress front end
  100. Reloading page with a query string upon login for admins
Categories login Tags authentication, login, security, wp-login-form
Custom Post Type: Show Similar Posts
Get css class of menu item in custom menu structure

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress