apply_filters( 'category_list_link_attributes', array $atts, WP_Term $category, int $depth, array $args, int $current_object_id )

Filters the HTML attributes applied to a category list item’s anchor element.



(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.


(WP_Term) Term data object.


(int) Depth of category, used for padding.


(array) An array of arguments.


(int) ID of the current category.

Top ↑


File: wp-includes/class-walker-category.php

View on Trac

Top ↑


Version Description
5.2.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.