WP HOOKS
filtrod 6.8.0

password_needs_rehash

Args 3Plik wp-includes/pluggable.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters whether the password hash needs to be rehashed.

Parametry

ParametrTypOpis
$needs_rehashboolWhether the password hash needs to be rehashed.
$hashstringThe password hash.
$user_idstring | intOptional. ID of a user associated with the password.

Wywołanie

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

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

Popularne w tej kategorii