WP HOOKS
filtrod 2.5.0

wp_authenticate_user

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

Opis — z kodu źródłowego

Filters whether the given user can be authenticated with the provided password.

Parametry

ParametrTypOpis
$user\WP_User | \WP_ErrorWP_User or WP_Error object if a previous callback failed authentication.
$passwordstringPassword to check against the user.

Wywołanie

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

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

Popularne w tej kategorii