wp_authenticate_application_password_errors хук-событие . WP 5.6.0
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', 'action_function_name_7351', 10, 4 ); function action_function_name_7351( $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 411
do_action( 'wp_authenticate_application_password_errors', $error, $user, $item, $password );