wp_sitemaps_posts_pre_max_num_pages

wp_sitemaps_posts_pre_max_num_pages

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('wp_sitemaps_posts_pre_max_num_pages') is found 1 times:

  • /wp-includes/sitemaps/providers/class-wp-sitemaps-posts.php line 200
    		 *
    		 * @param int|null $max_num_pages The maximum number of pages. Default null.
    		 * @param string   $post_type     Post type name.
    		 */
    		$max_num_pages = apply_filters( 'wp_sitemaps_posts_pre_max_num_pages', null, $post_type );
    
    		if ( null !== $max_num_pages ) {
    			return $max_num_pages;
    		}
    
    		$args                  = $this->get_posts_query_args( $post_type );