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', '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...
The error object.
The user authenticating.
The details about the application password.
The raw supplied password.

Список изменений

С версии 5.6.0 Введена.

Где вызывается хук

wp-includes/user.php 428
do_action( 'wp_authenticate_application_password_errors', $error, $user, $item, $password );

Где используется хук в WordPress

Использование не найдено.