wp_sitemaps_taxonomies_pre_max_num_pages

wp_sitemaps_taxonomies_pre_max_num_pages

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('wp_sitemaps_taxonomies_pre_max_num_pages') is found 1 times:

  • /wp-includes/sitemaps/providers/class-wp-sitemaps-taxonomies.php line 166
    		 *
    		 * @param int|null $max_num_pages The maximum number of pages. Default null.
    		 * @param string   $taxonomy      Taxonomy name.
    		 */
    		$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 ) );