filtrod 5.2.0
category_list_link_attributes
Opis — z kodu źródłowego
Filters the HTML attributes applied to a category list item's anchor element.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$atts | array | { The HTML attributes applied to the list item's <code><a></code> element, empty strings are ignored. @type string $href The href attribute. @type string $title The title attribute. } |
$category | \WP_Term | Term data object. |
$depth | int | Depth of category, used for padding. |
$args | array | An array of arguments. |
$current_object_id | int | ID of the current category. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'category_list_link_attributes', 'twoja_funkcja', 10, 5 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4, $param_5) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'category_list_link_attributes', 'twoja_funkcja', 10, 5 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4, $param_5) {
// Twój kod
}Popularne w tej kategorii