Filter hook 'category_list_link_attributes'

in WP Core File wp-includes/class-walker-category.php at line 144

Description

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

Occurrences

Filename Line Number
wp-includes/class-walker-category.php 144

Parameters

Type Name Description
array $atts { The HTML attributes applied to the list item's `` element, empty strings are ignored.
WP_Term $category Term data object.
int $depth Depth of category, used for padding.
array $args An array of arguments.
int $current_object_id ID of the current category.

PHP Doc

/**
		 * Filters the HTML attributes applied to a category list item's anchor element.
		 *
		 * @since 5.2.0
		 *
		 * @param array   $atts {
		 *     The HTML attributes applied to the list item's `` element, empty strings are ignored.
		 *
		 *     @type string $href  The href attribute.
		 *     @type string $title The title attribute.
		 * }
		 * @param WP_Term $category          Term data object.
		 * @param int     $depth             Depth of category, used for padding.
		 * @param array   $args              An array of arguments.
		 * @param int     $current_object_id ID of the current category.
		 */