WP HOOKS
filtrod 3.7.0

password_reset_key_expired

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

Opis — z kodu źródłowego

Filters the return value of check_password_reset_key() when an old-style key or an expired key is used.

Parametry

ParametrTypOpis
$return\WP_ErrorA WP_Error object denoting an expired key. Return a WP_User object to validate the key.
$user_idintThe matched user ID.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'password_reset_key_expired', 'twoja_funkcja', 10, 2 );

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

Popularne w tej kategorii