wp_authorize_application_password_request_errors
Fires before application password errors are returned.
Usage
add_action( 'wp_authorize_application_password_request_errors', 'wp_kama_authorize_application_password_request_errors_action', 10, 3 ); /** * Function for `wp_authorize_application_password_request_errors` action-hook. * * @param WP_Error $error The error object. * @param array $request The array of request data. * @param WP_User $user The user authorizing the application. * * @return void */ function wp_kama_authorize_application_password_request_errors_action( $error, $request, $user ){ // action... }
- $error(WP_Error)
- The error object.
- $request(array)
- The array of request data.
- $user(WP_User)
- The user authorizing the application.
Changelog
Since 5.6.0 | Introduced. |
Where the hook is called
wp_authorize_application_password_request_errors
wp-admin/includes/user.php 693
do_action( 'wp_authorize_application_password_request_errors', $error, $request, $user );