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. Not sure the best way to save custom plugin data
  10. The ideal place for storing persistent PHP objects
  11. What is the correct way for plugins to create tables with special charset/collation considerations?
  12. What is the added “complexity” of custom tables?
  13. Plugin development with unit tests
  14. How is the data stored in the database?
  15. Formatting of curly brackets array from WP database to get more readable output
  16. How to modify post content before writing to database?
  17. Actions or filters fired when data is saved in a custom table
  18. Hello dolly type plugin that allows people to add their own
  19. Sample — test — data for large WordPress install
  20. Custom Plugin Database relations
  21. Is there any reason only 1 (my) IP would be added to this table using $wpdn->insert?
  22. How to store data for posts/pages built with drag-n-drop builder?
  23. Database for development
  24. Is there a naming convention for database tables created by a plugin?
  25. Activation hook not creating table
  26. Is the usage of ON DELETE CASCADE wrong or not allowed on wordpress?
  27. Version upgrade: can my plugin filter the SQL statements issued during a database upgrade?
  28. Saving data from block editor to the database
  29. What for the tables ending with the meta used in database of wordpress?
  30. Creating table with plugin is not working
  31. dbDelta() Error – Incorrect index name ” for query ALTER TABLE
  32. Get a custom table to an array
  33. Update/insert only a column of database table
  34. Why is my javascript not invoked in my hooks except wp_head?
  35. How to Create database table when Plugin installed/activated, and delete database when Plugin deleted
  36. Subscribe to author?
  37. I’m designing a plugin to create database indexes. Suggestions?
  38. WordPress database error for query INSERT INTO
  39. How to connect to AWS RDS external database (not for the core WordPress db)
  40. How should I store a log for my plugin
  41. How to create database table, add data, update and delete using wpdb via plugins?
  42. Using WPDB to output raw XML fails because of wp-blog-header.php
  43. Are there any scripts, classes, and/or functions built-in to WP for a plugin to export/import its saved data from wp_options?
  44. Strange issue saving custom field data for a WooCommerce order
  45. How to perform a heavy and long process in cron jobs?
  46. Form doesnt save to database
  47. Updating Woocommerce Settings API when WordPress Settings API saved and vise versa
  48. Custom login doesn’t work properly
  49. Is using custom table to suit business needs instead of transients a big hit to page load speed?
  50. Plugin Development for registered users
  51. Optimising a big WordPress site
  52. wpdb->prepare and mysql UPDATE – how is it done?
  53. dbDelta SQL Query Not Working
  54. What might be the reason of Couldn’t fetch mysqli_result on another domain?
  55. How do I debug an error that a plugin is causing?
  56. Save temporary registration data
  57. Update plugin settings option_name for big plugin update
  58. $wpdb->update Issue
  59. dbdelta failing with error: “WordPress database error Table ‘wp_2_myPlugin’ already exists
  60. WordPress database error: [Query was empty] – using $wpdb->prepare()
  61. Error code when migrate
  62. Why User_login key doesn’t work with wp_update_user()
  63. Hiding the WordPress login and password fields from login page
  64. How to get inserted row IDs for bulk/batch insert with wpdb query?
  65. WordPress how do I echo SUM from a column of a MySQL table by user id AND type_operation
  66. WordPress Fatal error: Uncaught Error: Call to undefined function dbDelta()
  67. how to add security questions on wp-registration page and validate it
  68. Use admin-post to submit form data to external database
  69. Save in my custom admin page and redirect to the saved object
  70. Relational / Associate tables using native WordPress functionality
  71. WordPress doesn’t create table on plugin activation
  72. Insert Data into Database
  73. Update database record in plugin
  74. How to store in the database directly the translation?
  75. How and when would I implement some code which would take data from one part of the Db and put it in another?
  76. pull data from wordpress database
  77. Ajax not working to insert, query and result data
  78. Why Worpdress doesn’t create table in database?
  79. Form and database, plugin development
  80. How to create session for user which is not an admin user
  81. How to filter get_adjacent_post()?
  82. Associating special meaning with user id 0
  83. What method should I use to store my plugin data (multi level menus with options on each item)
  84. How to add additional field in a table row after creating a table?
  85. WordPress plugin tables become corrupt
  86. Post data in wp-admin to external database
  87. How can I get a plugin to hook ‘dbdelta_queries’ — a filter used during version update?
  88. Running one-off cron jobs when WP_DISABLE_CRON is true: can I hit /wp-cron.php?
  89. How to create a database table in WordPress using PHP
  90. Leveraging Core Functionality in Icon Upload Plugin [closed]
  91. Can I log the searches that are returning 404 in the DB?
  92. Programmatically creating posts based on external JSON feed (asynchronously)
  93. WordPress database error: [Table ‘bitnami_wordpress.questions’ doesn’t exist]
  94. Making a user platform reachable by a qr code on a pin-back-button [closed]
  95. multiple record insert creating many duplicate records
  96. Custom Plugin Breaks Other Plugin Functions
  97. Custom database table entry edit page
  98. Update Cache on Save Instead of Clearing It?
  99. Images stored from external API not loading
  100. Is there a way to force plugins to use Flyway migrations for database changes?
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
  • Post Navigation Elementor
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • WPFacet multiple loop displaying duplicate content
  • Get the name of the template/*html file used
  • Fix: WordPress.DB.PreparedSQL.NotPrepared Plugin Check (PCP)
  • Removing unnecessary CSS and JS code from wp_head()
  • hexagonal image gallery. Am I on the right track? [closed]
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
© 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