wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



category_list_link_attributes › Hooks de Filtros WordPress

Desde5.2.0
Obsoleton/a
apply_filters( 'category_list_link_attributes', $atts, $category, $depth, $args, $current_object_id )
Parâmetros: (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. }
    Required: Yes
  • (WP_Term) $category Term data object.
    Required: Yes
  • (int) $depth Depth of category, used for padding.
    Required: Yes
  • (array) $args An array of arguments.
    Required: Yes
  • (int) $current_object_id ID of the current category.
    Required: Yes
Definido em:
Codex:

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





Fonte

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