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

Can we intercept user_login and user_pass from a wp_login_form?

Thanks @Buttered_Toast !

The answer was to use the wp_authenticate hook and put my custom function as argument. I should have thought about it…

Related Posts:

  1. Post meta vs separate database tables
  2. Is it mandatory to use $wpdb->prefix in custom tables
  3. Update Option Stored in Multi-Dimensional Array
  4. Default table collation on plugin activation?
  5. Using a database view = evil incarnate?
  6. Writing a plugin that notify my friends of new post that mentions(@) them
  7. Getting wrong relationship value in $args in wp_Query?
  8. WordPress and multithreading
  9. What is the correct way for plugins to create tables with special charset/collation considerations?
  10. What is the added “complexity” of custom tables?
  11. How is the data stored in the database?
  12. How to modify post content before writing to database?
  13. Actions or filters fired when data is saved in a custom table
  14. Sample — test — data for large WordPress install
  15. Custom Plugin Database relations
  16. Is there any reason only 1 (my) IP would be added to this table using $wpdn->insert?
  17. How to store data for posts/pages built with drag-n-drop builder?
  18. Database for development
  19. Is there a naming convention for database tables created by a plugin?
  20. Version upgrade: can my plugin filter the SQL statements issued during a database upgrade?
  21. Saving data from block editor to the database
  22. What for the tables ending with the meta used in database of wordpress?
  23. Creating table with plugin is not working
  24. dbDelta() Error – Incorrect index name ” for query ALTER TABLE
  25. Update/insert only a column of database table
  26. Why is my javascript not invoked in my hooks except wp_head?
  27. How to Create database table when Plugin installed/activated, and delete database when Plugin deleted
  28. Subscribe to author?
  29. I’m designing a plugin to create database indexes. Suggestions?
  30. WordPress database error for query INSERT INTO
  31. How to connect to AWS RDS external database (not for the core WordPress db)
  32. Using WPDB to output raw XML fails because of wp-blog-header.php
  33. Are there any scripts, classes, and/or functions built-in to WP for a plugin to export/import its saved data from wp_options?
  34. Strange issue saving custom field data for a WooCommerce order
  35. How to perform a heavy and long process in cron jobs?
  36. Form doesnt save to database
  37. Updating Woocommerce Settings API when WordPress Settings API saved and vise versa
  38. Custom login doesn’t work properly
  39. Is using custom table to suit business needs instead of transients a big hit to page load speed?
  40. Plugin Development for registered users
  41. wpdb->prepare and mysql UPDATE – how is it done?
  42. dbDelta SQL Query Not Working
  43. dbDelta not installing database
  44. Is it necessary to do validation again when retrieving data from database?
  45. What is the best way to store a few fields?
  46. Plugin: database creation
  47. Adding columns to core tables
  48. How to query custom db table?
  49. Delete data from database using row action
  50. Show dynamic list of products from custom api of another database under same host
  51. How do I have now a duplicated user entry if this is not allowed (and I cannot replicate it)?
  52. Alternative functions for mysql_free_result and mysql_ping in wordpress functions
  53. Make Database query only when option is updated
  54. How best to handle database version dependence (from $wp_db_version)
  55. WP: Search and replace in DB programmatically
  56. Using AND and bracket grouping in SQL not working
  57. Two different wordpress sites – same server and IP address. Gaining Access to database 1 of 2
  58. How do I validate extra pin field on my WordPress login form page?
  59. What might be the reason of Couldn’t fetch mysqli_result on another domain?
  60. How do I debug an error that a plugin is causing?
  61. Save temporary registration data
  62. Update plugin settings option_name for big plugin update
  63. $wpdb->update Issue
  64. dbdelta failing with error: “WordPress database error Table ‘wp_2_myPlugin’ already exists
  65. WordPress database error: [Query was empty] – using $wpdb->prepare()
  66. Error code when migrate
  67. Why User_login key doesn’t work with wp_update_user()
  68. Hiding the WordPress login and password fields from login page
  69. How to get inserted row IDs for bulk/batch insert with wpdb query?
  70. WordPress Fatal error: Uncaught Error: Call to undefined function dbDelta()
  71. how to add security questions on wp-registration page and validate it
  72. Use admin-post to submit form data to external database
  73. Save in my custom admin page and redirect to the saved object
  74. WordPress doesn’t create table on plugin activation
  75. Insert Data into Database
  76. Update database record in plugin
  77. How to store in the database directly the translation?
  78. How and when would I implement some code which would take data from one part of the Db and put it in another?
  79. pull data from wordpress database
  80. Ajax not working to insert, query and result data
  81. Why Worpdress doesn’t create table in database?
  82. Form and database, plugin development
  83. How to create session for user which is not an admin user
  84. How to filter get_adjacent_post()?
  85. Associating special meaning with user id 0
  86. What method should I use to store my plugin data (multi level menus with options on each item)
  87. How to add additional field in a table row after creating a table?
  88. WordPress plugin tables become corrupt
  89. Post data in wp-admin to external database
  90. How can I get a plugin to hook ‘dbdelta_queries’ — a filter used during version update?
  91. Running one-off cron jobs when WP_DISABLE_CRON is true: can I hit /wp-cron.php?
  92. How to create a database table in WordPress using PHP
  93. Can I log the searches that are returning 404 in the DB?
  94. Programmatically creating posts based on external JSON feed (asynchronously)
  95. WordPress database error: [Table ‘bitnami_wordpress.questions’ doesn’t exist]
  96. Making a user platform reachable by a qr code on a pin-back-button [closed]
  97. multiple record insert creating many duplicate records
  98. Custom Plugin Breaks Other Plugin Functions
  99. Custom database table entry edit page
  100. How to get list of ALL tables in the database?
Categories plugin-development Tags database, plugin-development, wp-login-form
For each loop on every word in post
How to inherit field value from parent post into in child / sub post

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