category_list_link_attributes

Advertisement

Summery Summery

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

Syntax Syntax

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

Parameters Parameters

$atts

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.

$category

Term data object.

$depth

Depth of category, used for padding.

$args

An array of arguments.

$id

ID of the current category.

Source Source

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

Advertisement

Changelog Changelog

Changelog
Version Description
5.2.0 Introduced.

Advertisement

Leave a Reply