filtrod 4.9.0
username_exists
Opis — z kodu źródłowego
Filters whether the given username exists.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$user_id | int | false | The user ID associated with the username, or false if the username does not exist. |
$username | string | The username to check for existence. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'username_exists', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'username_exists', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii