WP HOOKS
akcjaod 5.6.0

wp_authenticate_application_password_errors

Args 4Plik wp-includes/user.phpDokumentacja WP ↗

Opis — z kodu źródłowego

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.

Parametry

ParametrTypOpis
$error\WP_ErrorThe error object.
$user\WP_UserThe user authenticating.
$itemarrayThe details about the application password.
$passwordstringThe raw supplied password.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'wp_authenticate_application_password_errors', 'twoja_funkcja', 10, 4 );

function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
	// Twój kod
}

Popularne w tej kategorii