| 384 | * The list of arguments matches wp_dropdown_categories() with the exception of |
| 385 | * 'taxonomy', which is it's own function argument here. |
| 386 | * |
| 387 | * @since 3.5 |
| 388 | * |
| 389 | * @param string $taxonomy Taxonomy name |
| 390 | * @param string|array $args Optional. Override default arguments. |
| 391 | * @return string HTML content only if 'echo' argument is 0. |
| 392 | */ |
| 393 | function wp_dropdown_terms( $taxonomy, $args = '' ) { |
| 394 | $args = wp_parse_args( $args ); |
| 395 | $args['taxonomy'] = $taxonomy; |
| 396 | |
| 397 | return wp_dropdown_categories( $args ); |
| 398 | } |
| 399 | |
| 400 | /** |
| 401 | * Display or retrieve the HTML list of a taxonomy's terms. |
| 402 | * |
| 513 | * Display or retrieve the HTML list of a taxonomy's terms. |
| 514 | * |
| 515 | * The list of arguments matches wp_list_categories() with the exception of |
| 516 | * 'taxonomy', which is it's own function argument here. |
| 517 | * |
| 518 | * @since 3.5 |
| 519 | * |
| 520 | * @param string $taxonomy Taxonomy name |
| 521 | * @param string|array $args Optional. Override default arguments. |
| 522 | * @return string HTML content only if 'echo' argument is 0. |
| 523 | */ |
| 524 | function wp_list_terms( $taxonomy, $args = '' ) { |
| 525 | $args = wp_parse_args( $args ); |
| 526 | $args['taxonomy'] = $taxonomy; |
| 527 | |
| 528 | return wp_list_categories( $args ); |
| 529 | } |
| 530 | |
| 531 | /** |