Changeset 40903
- Timestamp:
- 06/15/2017 09:38:30 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/category-template.php
r40816 r40903 276 276 * 277 277 * @param string|array $args { 278 * Optional. Array or string of arguments to generate a categories drop-down element. 278 * Optional. Array or string of arguments to generate a categories drop-down element. See WP_Term_Query::__construct() 279 * for information on additional accepted arguments. 279 280 * 280 281 * @type string $show_option_all Text to display for showing all categories. Default empty. 281 282 * @type string $show_option_none Text to display for showing no categories. Default empty. 282 283 * @type string $option_none_value Value to use when no category is selected. Default empty. 283 * @type string $orderby Which column to use for ordering categories. See get_terms() for a list284 * of accepted values. Default 'id' (term_id).285 * @type string $order Whether to order terms in ascending or descending order. Accepts 'ASC'286 * or 'DESC'. Default 'ASC'.287 284 * @type bool $pad_counts See get_terms() for an argument description. Default false. 288 285 * @type bool|int $show_count Whether to include post counts. Accepts 0, 1, or their bool equivalents. 289 286 * Default 0. 290 * @type bool|int $hide_empty Whether to hide categories that don't have any posts. Accepts 0, 1, or291 * their bool equivalents. Default 1.292 * @type int $child_of Term ID to retrieve child terms of. See get_terms(). Default 0.293 * @type array|string $exclude Array or comma/space-separated string of term ids to exclude.294 * If `$include` is non-empty, `$exclude` is ignored. Default empty array.295 287 * @type bool|int $echo Whether to echo or return the generated markup. Accepts 0, 1, or their 296 288 * bool equivalents. Default 1. 297 * @type bool|int $hierarchical Whether to traverse the taxonomy hierarchy. Accepts 0, 1, or their bool298 * equivalents. Default 0.299 289 * @type int $depth Maximum depth. Default 0. 300 290 * @type int $tab_index Tab index for the select element. Default 0 (no tabindex). … … 308 298 * 'slug', 'term_group', 'term_taxonomy_id', 'taxonomy', 'description', 309 299 * 'parent', 'count'. Default 'term_id'. 310 * @type string|array $taxonomy Name of the category or categories to retrieve. Default 'category'.311 300 * @type bool $hide_if_empty True to skip generating markup if no categories are found. 312 301 * Default false (create select element even if no categories are found).
Note: See TracChangeset
for help on using the changeset viewer.