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



widget_categories_dropdown_args › WordPress Filter Hooks

Seit7.2.0
Veraltetn/v
› apply_filters( 'widget_categories_dropdown_args', $cat_args, $instance )
Parameter: (2)
  • () cat_args { An array of Categories widget drop-down arguments. See {@see \wp_dropdown_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 $show_option_none Text to display for showing no categories. Set to 'Select Category'. @type string $id Value for the 'id' attribute of the select element. }
    Erforderlich: Ja
  • () 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. }
    Erforderlich: Ja
Siehe:
  • wp_dropdown_categories()
Definiert in:
Codex:

Filters the arguments for the Categories widget drop-down.





Quellcode

wp_dropdown_categories( apply_filters( 'widget_categories_dropdown_args', $cat_args, $instance ) );