On this page
do_action_ref_array( 'wp_authenticate', string $user_login, string $user_password )
Fires before the user is authenticated.
Description
The variables passed to the callbacks are passed by reference, and can be modified by callback functions.
Parameters
$user_loginstring-
Username (passed by reference).
$user_passwordstring-
User password (passed by reference).
More Information
This action is located inside of wp_signon() . In contrast to the wp_login action, it is executed before the WordPress authentication process.
This action hook is not to be confused with the wp_authenticate() pluggable function.
Source
File: wp-includes/user.php. View all references
do_action_ref_array( 'wp_authenticate', array( &$credentials['user_login'], &$credentials['user_password'] ) );
Related
Used By
| Used By | Description |
|---|---|
| wp_signon() wp-includes/user.php | Authenticates and logs a user in with ‘remember’ capability. |
Changelog
| Version | Description |
|---|---|
| 1.5.1 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_authenticate