Changeset 33765
- Timestamp:
- 08/26/2015 07:42:02 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/category-template.php
r33764 r33765 467 467 * Array of optional arguments. 468 468 * 469 * @type string $show_option_all Text to display for showing all categories. Default empty string. 470 * @type string $show_option_none Text to display for the 'no categories' option. Default 'No categories'. 471 * @type string $orderby The column to use for ordering categories. Default 'ID'. 472 * @type string $order Which direction to order categories. Accepts 'ASC' or 'DESC'. 473 * Default 'ASC'. 474 * @type bool|int $show_count Whether to show how many posts are in the category. Default 0. 475 * @type bool|int $hide_empty Whether to hide categories that don't have any posts attached to them. 476 * Default 1. 477 * @type bool|int $use_desc_for_title Whether to use the category description as the title attribute. 478 * Default 1. 479 * @type string $feed Text to use for the feed link. Default 'Feed for all posts filed 480 * under [cat name]'. 481 * @type string $feed_type Feed type. Used to build feed link. See {@link get_term_feed_link()}. 482 * Default empty string (default feed). 483 * @type string $feed_image URL of an image to use for the feed link. Default empty string. 484 * @type int $child_of Term ID to retrieve child terms of. See {@link get_terms()}. Default 0. 485 * @type array|string $exclude Array or comma/space-separated string of term IDs to exclude. 486 * See {@link get_terms()}. Default empty string. 487 * @type array|string $exclude_tree Array or comma/space-separated string of term IDs to exclude, along with 488 * their descendants. See {@link get_terms()}. Default empty string. 489 * @type bool|int $echo True to echo markup, false to return it. Default 1. 490 * @type int $current_category Category that should get the 'current-cat' class. Default 0. 491 * @type bool $hierarchical Whether to include terms that have non-empty descendants. 492 * See {@link get_terms()}. Default true. 493 * @type string $title_li Text to use for the list title `<li>` element. Pass an empty string 494 * to disable. Default 'Categories'. 469 * @type string $show_option_all Text to display for showing all categories. Default empty string. 470 * @type string $show_option_none Text to display for the 'no categories' option. 471 * Default 'No categories'. 472 * @type string $orderby The column to use for ordering categories. Default 'ID'. 473 * @type string $order Which direction to order categories. Accepts 'ASC' or 'DESC'. 474 * Default 'ASC'. 475 * @type bool|int $show_count Whether to show how many posts are in the category. Default 0. 476 * @type bool|int $hide_empty Whether to hide categories that don't have any posts attached to them. 477 * Default 1. 478 * @type bool|int $use_desc_for_title Whether to use the category description as the title attribute. 479 * Default 1. 480 * @type string $feed Text to use for the feed link. Default 'Feed for all posts filed 481 * under [cat name]'. 482 * @type string $feed_type Feed type. Used to build feed link. See {@link get_term_feed_link()}. 483 * Default empty string (default feed). 484 * @type string $feed_image URL of an image to use for the feed link. Default empty string. 485 * @type int $child_of Term ID to retrieve child terms of. See {@link get_terms()}. Default 0. 486 * @type array|string $exclude Array or comma/space-separated string of term IDs to exclude. 487 * See {@link get_terms()}. Default empty string. 488 * @type array|string $exclude_tree Array or comma/space-separated string of term IDs to exclude, along 489 * with their descendants. See {@link get_terms()}. Default empty string. 490 * @type bool|int $echo True to echo markup, false to return it. Default 1. 491 * @type int $current_category Category that should get the 'current-cat' class. Default 0. 492 * @type bool $hierarchical Whether to include terms that have non-empty descendants. 493 * See {@link get_terms()}. Default true. 494 * @type string $title_li Text to use for the list title `<li>` element. Pass an empty string 495 * to disable. Default 'Categories'. 495 496 * @type bool $hide_title_if_no_cats Whether to hide the `$title_li` element if there are no terms in 496 497 * the list. Default false (title will always be shown). 497 * @type int $depth Category depth. Used for tab indentation. Default 0.498 * @type string $taxonomy Taxonomy name. Default 'category'.498 * @type int $depth Category depth. Used for tab indentation. Default 0. 499 * @type string $taxonomy Taxonomy name. Default 'category'. 499 500 * } 500 501 * @return false|string HTML content only if 'echo' argument is 0.
Note: See TracChangeset
for help on using the changeset viewer.