category_list_link_attributes
最后更新于:2021-11-25 22:50:02
apply_filters( ‘category_list_link_attributes’, array $atts, GC_Term $category, int $depth, array $args, int $id )
Filters the HTML attributes applied to a category list item’s anchor element.
参数
- $atts
-
(array)
The HTML attributes applied to the list item’s<a>
element, empty strings are ignored.-
‘href’
(string) The href attribute. -
‘title’
(string) The title attribute.
-
‘href’
- $category
-
(GC_Term)
Term data object. - $depth
-
(int)
Depth of category, used for padding. - $args
-
(array)
An array of arguments. - $id
-
(int)
ID of the current category.
源文件
文件: gc-includes/class-walker-category.php