with my plugin, I have a login form. I use the wp_login_form() function of Wordpress.
As you know, this function links to the wp-login page. But if the user_login is not present or if the email is empty in the database, an error will be present.
My users come from an external database. Imagine the following situation: A user from my external database connects for the first time on the site, so he is not in the wp_users table of Wordpress. When he goes to submit, I would like him to add the user in the wp_users table before being logged in because he exists in my external database.
Do you have an idea for the interception, or for another way to do it?
Thanks in advance for the answers