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.2

apply_filters('wp_sitemaps_posts_pre_max_num_pages') is found 1 times:

  • /wp-includes/sitemaps/providers/class-wp-sitemaps-posts.php line 200
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    *
     * @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 );