filtrod 3.0.0
random_password
Opis — z kodu źródłowego
Filters the randomly-generated password.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$password | string | The generated password. |
$length | int | The length of password to generate. |
$special_chars | bool | Whether to include standard special characters. |
$extra_special_chars | bool | Whether to include other special characters. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'random_password', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'random_password', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}Popularne w tej kategorii