filtrod 2.6.0
avatar_defaults
Opis — z kodu źródłowego
Filters the default avatars.
Avatars are stored in key/value pairs, where the key is option value, and the name is the displayed avatar name.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$avatar_defaults | string[] | Associative array of default avatars. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'avatar_defaults', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'avatar_defaults', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii