WP HOOKS
filtrod 2.7.0

allow_password_reset

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

Opis — z kodu źródłowego

Filters whether to allow a password to be reset.

Parametry

ParametrTypOpis
$allowboolWhether to allow the password to be reset. Default true.
$user_idintThe ID of the user attempting to reset a password.

Wywołanie

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

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

Popularne w tej kategorii