wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



category_list_link_attributes › Les Filtres WordPress

Depuis5.2.0
Dépréciéen/a
apply_filters( 'category_list_link_attributes', $atts, $category, $depth, $args, $current_object_id )
Paramètres: (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. }
    Requis: Oui
  • (WP_Term) $category Term data object.
    Requis: Oui
  • (int) $depth Depth of category, used for padding.
    Requis: Oui
  • (array) $args An array of arguments.
    Requis: Oui
  • (int) $current_object_id ID of the current category.
    Requis: Oui
Défini(e) dans:
Codex:

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





Source

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