filtrod 2.5.0
wp_authenticate_user
Opis — z kodu źródłowego
Filters whether the given user can be authenticated with the provided password.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$user | \WP_User | \WP_Error | WP_User or WP_Error object if a previous callback failed authentication. |
$password | string | Password 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
}
// 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