WP HOOKS
filtrod 2.5.0

check_password

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

Opis — z kodu źródłowego

Filters whether the plaintext password matches the hashed password.

Parametry

ParametrTypOpis
$checkboolWhether the passwords match.
$passwordstringThe plaintext password.
$hashstringThe hashed password.
$user_idstring | intOptional ID of a user associated with the password. Can be empty.

Wywołanie

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

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

Popularne w tej kategorii