A WordPress-centric search engine for devs and theme authors



wp_sitemaps_posts_pre_max_num_pages ›

Since5.5.0
Deprecatedn/a
apply_filters( 'wp_sitemaps_posts_pre_max_num_pages', null, $post_type )
Parameters: (2)
  • (int|null) $max_num_pages The maximum number of pages. Default null.
    Required: Yes
  • (string) $post_type Post type name.
    Required: Yes
Defined at:
Codex:

Filters the max number of pages before it is generated.

Passing a non-null value will short-circuit the generation, returning that value instead.





Source

$max_num_pages = apply_filters( 'wp_sitemaps_posts_pre_max_num_pages', null, $post_type );