$max_num_pages =
apply_filters( 'wp_sitemaps_taxonomies_pre_max_num_pages', null,
$taxonomy );
if ( null !==
$max_num_pages ) { return $max_num_pages;
} $term_count =
wp_count_terms( $this->
get_taxonomies_query_args( $taxonomy ) );
return (int) ceil( $term_count /
wp_sitemaps_get_max_urls( $this->object_type
) );
} /**
* Returns the query args for retrieving taxonomy terms to list in the sitemap.
*
* @since 5.5.0
*
* @param string $taxonomy Taxonomy name.
* @return array Array of WP_Term_Query arguments.
*/