On this page
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.
Parameters
$attsarray-
The HTML attributes applied to the list item's
<a>element, empty strings are ignored.
hrefstringThe href attribute.titlestringThe title attribute.
$categoryWP_Term-
Term data object.
$depthint-
Depth of category, used for padding.
$argsarray-
An array of arguments.
$current_object_idint-
ID of the current category.
Source
File: wp-includes/class-walker-category.php. View all references
$atts = apply_filters( 'category_list_link_attributes', $atts, $category, $depth, $args, $current_object_id );
Related
Used By
| Used By | Description |
|---|---|
| Walker_Category::start_el() wp-includes/class-walker-category.php | Starts the element output. |
Changelog
| Version | Description |
|---|---|
| 5.2.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/category_list_link_attributes