Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



category_list_link_attributes ›

Seit5.2.0
Veraltetn/v
apply_filters( 'category_list_link_attributes', $atts, $category, $depth, $args, $id )
Parameter: (5)
  • (array) $atts { The HTML attributes applied to the list item's `<a>` element, empty strings are ignored. @type string $href The href attribute. @type string $title The title attribute. }
    Erforderlich: Ja
  • (WP_Term) $category Term data object.
    Erforderlich: Ja
  • (int) $depth Depth of category, used for padding.
    Erforderlich: Ja
  • (array) $args An array of arguments.
    Erforderlich: Ja
  • (int) $id ID of the current category.
    Erforderlich: Ja
Definiert in:
Codex:

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





Quellcode

$atts = apply_filters( 'category_list_link_attributes', $atts, $category, $depth, $args, $id );