wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



widget_categories_args › Filtr WordPress Hooks

Od7.2.0
Przestarzałyn/a
› apply_filters( 'widget_categories_args', $cat_args, $instance )
Parametry: (2)
  • () cat_args { An array of Categories widget options. See {@see \wp_list_categories()} for information on additional accepted arguments. @type string $orderby Which column to use for ordering categories. See {@see \get_terms()} for a list of accepted values. Default 'name'. @type bool $show_count Whether to include post counts. @type bool $hierarchical Whether to traverse the taxonomy hierarchy. @type string $title_li Text to use for the list title `<li>` element. Default empty string. }
    Wymagane: Tak
  • () instance { Array of settings for the current widget. @type string $title Widget title. @type 0|1 $count Whether to show post counts. @type 0|1 $hierarchical Whether to show the category hierarchy. @type 0|1 $dropdown Whether to display the categories as a drop-down. }
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters the arguments for the Categories widget.





Źródło

wp_list_categories( apply_filters( 'widget_categories_args', $cat_args, $instance ) );