Filters the HTML attributes applied to a category list item’s anchor element.
Parameters
$atts
array- The HTML attributes applied to the list item’s
<a>
element, empty strings are ignored.
href
stringThe href attribute.title
stringThe 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.
Source
$atts = apply_filters( 'category_list_link_attributes', $atts, $category, $depth, $args, $current_object_id );
Changelog
Version | Description |
---|---|
5.2.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.