wp_authenticate_application_password_errors
Fires when an application password has been successfully checked as valid.
This allows for plugins to add additional constraints to prevent an application password from being used.
Использование
add_action( 'wp_authenticate_application_password_errors', 'wp_kama_authenticate_application_password_errors_action', 10, 4 );
/**
* Function for `wp_authenticate_application_password_errors` action-hook.
*
* @param WP_Error $error The error object.
* @param WP_User $user The user authenticating.
* @param array $item The details about the application password.
* @param string $password The raw supplied password.
*
* @return void
*/
function wp_kama_authenticate_application_password_errors_action( $error, $user, $item, $password ){
// action...
}
- $error(WP_Error)
- The error object.
- $user(WP_User)
- The user authenticating.
- $item(массив)
- The details about the application password.
- $password(строка)
- The raw supplied password.
Список изменений
| С версии 5.6.0 | Введена. |
Где вызывается хук
wp_authenticate_application_password_errors
wp-includes/user.php 478
do_action( 'wp_authenticate_application_password_errors', $error, $user, $item, $password );