You appear to be a bot. Output may be restricted
Description
Get count of terms for current query.
Usage
$int = AbstractTermsRoute::get_term_count( $taxonomy, $args );
Parameters
- $taxonomy
- ( string ) required – Taxonomy to get terms from.
- $args
- ( array ) required – Array of args to pass to wp_count_terms.
Returns
int
Source
File name: woocommerce/packages/woocommerce-blocks/src/StoreApi/Routes/AbstractTermsRoute.php
Lines:
1 to 5 of 5
protected function get_term_count( $taxonomy, $args ) { $count_args = $args; unset( $count_args['number'], $count_args['offset'] ); return (int) wp_count_terms( $taxonomy, $count_args ); }