filtrod 3.0.0
get_avatar_comment_types
Opis — z kodu źródłowego
Filters the list of allowed comment types for retrieving avatars.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$types | array | An array of content types. Default contains 'comment' and 'note'. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'get_avatar_comment_types', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'get_avatar_comment_types', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii