diff --git src/wp-includes/taxonomy.php src/wp-includes/taxonomy.php
index 370cb46ad5..b03ca2c4f5 100644
|
|
|
function wp_count_terms( $taxonomy, $args = array() ) { |
| 1702 | 1702 | } |
| 1703 | 1703 | |
| 1704 | 1704 | $args['fields'] = 'count'; |
| | 1705 | /** |
| | 1706 | * Filter arguments for retrieving count terms |
| | 1707 | * |
| | 1708 | * @param array $args An array of arguments for retrieving count of the terms for the given taxonomy |
| | 1709 | * @param string $taxnomoy Taxonomy name |
| | 1710 | */ |
| | 1711 | $args = apply_filters( 'wp_count_terms_args', $args, $taxonomy ); |
| 1705 | 1712 | |
| 1706 | 1713 | return get_terms( $args ); |
| 1707 | 1714 | } |