Filters the max number of pages before it is generated.
Description
Passing a non-null value will short-circuit the generation, returning that value instead.
Parameters
$max_num_pages
int|null- The maximum number of pages. Default null.
$post_type
string- Post type name.
Source
$max_num_pages = apply_filters( 'wp_sitemaps_posts_pre_max_num_pages', null, $post_type );
Changelog
Version | Description |
---|---|
5.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.