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

Create a Custom Login System in WordPress [closed]

Have you started here in the Codex (always a good place to go): https://codex.wordpress.org/Customizing_the_Login_Form . Lots of help there (and in links therein) on how to customize the login form.

And, lots of tutorials found via the googles.

Your code is assuming a lot of things that aren’t true. Forms in WP are different than forms in PHP/HTML. The query to get login authentication is different than you are trying, if you are accessing the WP user table. And your query into your own database is also in error – your ‘and’ condition is not properly formatted.

Rather than providing all of the answers – and reinventing the wheel because of all the googles on this subject – I recommend you start with the Codex link above, and then look at all of the tutorials on this subject.

It’s not clear whey you would want to have a separate user table, either – what is it about the WP user table that doesn’t meet your needs? You can add user roles to the WP user table to customize access levels.

So, more (much more) detail is needed. This question is a bit broad in scope.

Related Posts:

  1. External Authentication, session_tokens not destroyed on logout
  2. Can someone explain what wp_session_tokens are, and what are they used for?
  3. WordPress and PHP Sessions – Security and Performance
  4. How should you hook a session_start() when authoring a plugin?
  5. Init action hook running late after PayPal’s return url?
  6. Does using set_transient() function can lead to MySQL problems?
  7. How to check WordPress website username and password is correct
  8. Log in from one wordpress website to another wordpress website
  9. Problems after wp_set_password() containing an apostrophe
  10. Two-step login process – Is it possible?
  11. Sessions not creating correctly in custom function
  12. How do I approach removing menu items on the fly based on settings in my plugin?
  13. Is there any way to check for user login and send him to login?
  14. Proper way to pass credentials in a custom login form to avoid “headers already sent”
  15. Verify if user is wordpress logged in from another app since wordpress 4.0
  16. How to customize login process
  17. wp_insert_user() function password never match
  18. Does wp_login only trigger before an user signs in into the admin panel?
  19. Logout users upon login, based on caps/role?
  20. Is it possible to make sure that only my plugins output is shown to the enduser?
  21. Password field is empty when using wp_signon();
  22. Plugin Development for registered users
  23. captcha not working in my custom plugin
  24. Enqueue script globally
  25. WP Multisite login not working on one subsite. Possibly cookies/ history issue?
  26. Displaying “One Time” Notification in Plugins
  27. Updating transient value frequently
  28. How do I validate extra pin field on my WordPress login form page?
  29. How to redirect home page to another page after login for all user?
  30. How to share user data across multiple WordPress websites?
  31. Allowing duplicating users with same user_login and user_email
  32. How to Login a User inside a Plugin and Redirect to page?
  33. Using custom IDP with WP
  34. Hiding the WordPress login and password fields from login page
  35. $_SESSION inside php function executed by AJAX
  36. redirect_to how to make it simply work with get parameter or similar?
  37. How to create session for user which is not an admin user
  38. Sessions in plugin development?
  39. Multiple Users Logged In Causing Incorrect Account Returned
  40. Get user logged in status from within a plugin. $current_user not defined
  41. Need edit profile link in the menu for logged in users
  42. how can I insert a link on login page
  43. user can login from single account detail from multiple locations(computer) at the same time [closed]
  44. how to works woocommerce cart hash
  45. Flash messages for not logged in users
  46. Allow REST API Endpoint to specific user and hide from public
  47. How to use attributes in competent of Gutenberg
  48. Ajax on the Administration Side of plugin – returns 0
  49. How to create wordpress media library UI on plugin page
  50. Why my theme’s css not working on another site
  51. Create Woocommerce product without creating api credentials
  52. var(–text-color) in style.scss works once but not twitch
  53. How to call a function from a shortcode function in an oop plugin
  54. How to trigger selected option from a clic. (variation product woocommerce)
  55. How to access index file in Block Themes?
  56. Custom Endpoint – Does it possible to use PUT method with WP API Rest?
  57. How Place a Custom Form Fields in a specific location on the User Profile Page?
  58. How to determine primary editor for a page/post
  59. How does one update complex options?
  60. wp_new_user_notifications to notify user and admin about new user registration
  61. Is it possible to use the MySQL’s ORDER BY FIELD() clause as part of the pre_get_posts hook?
  62. Access to the template file of a plug-in
  63. List all user post API endpoint
  64. How to highlight a page in the page list (Admin Menu)?
  65. Can’t remove action hook on plugin class
  66. Using wp_mail to send email?
  67. Which wp plugin can use Create, Edit and Delete Email address from WordPress Dashboard
  68. Using WordPress with WP Statistics for QR code usage survey
  69. Bootstrap within shortcode
  70. Integrating a Gutenberg custom block within a larger plugin
  71. Rewrite not working since upgrade to 5.9
  72. How to do admin ajax request in a plugin for rest api
  73. Why won’t this submenu page show? – My First WordPress Plugin
  74. WordPress plugin development theme issue
  75. How to replace the existing metatag using the backend to insure a thumbnail image gets fetched when we share on social media?
  76. When setting styles to an extended block that was saved as a pattern, it doesn’t remove the style that was there
  77. New jquery and bootstrap breaks plugin
  78. How to show comments from different Plugins to same post type?
  79. How to create a custom wordpress plugin
  80. Action / Hook when a new plugin is added
  81. wordpress full site editing problem when extending core blocks
  82. Proper way to do a page view count on a page?
  83. Catching a GET parameter from the URL and save it in the user meta when a user registers
  84. How to check if `comment_meta` exists before inserting the comment?
  85. How to get the `comment_post_ID`?
  86. apply_filters() and call_user_func() to define and call a function outside a class
  87. WP_List_Table Inside Metabox With Bulk Actions Not Working on Submit
  88. Showing results from json-string in WordPress search results page
  89. Can someone explain what’s the use of parse request function in WordPress?
  90. Attaching Image-file to userId
  91. Add parameters to 3rd party callback function
  92. Pass custom props to
  93. How to show only the last two categories in a menu?
  94. wp.media gallery collection sometimes undefined
  95. How to save page URL as a favorite
  96. Getting Post ID at “stylesheet” and “template” hooks
  97. Translations only load from `wp-content/languages/plugins` but not from the plugin’s languages folder
  98. Pass Values in URL on WooCommerce Product Page
  99. Get API auth_token token to renew weekly
  100. Ajax action has 200 status but response of No response data available for this request
Categories plugin-development Tags login, plugin-development, session
How to clean up unnecessary file inside wp-content/plugins/wordpress-seo?
Display featured image metadata?

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