wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_sitemaps_posts_pre_max_num_pages › WordPress Filter Hooks

Seit5.5.0
Veraltetn/v
apply_filters( 'wp_sitemaps_posts_pre_max_num_pages', null, $post_type )
Parameter: (2)
  • (int|null) $max_num_pages The maximum number of pages. Default null.
    Erforderlich: Ja
  • (string) $post_type Post type name.
    Erforderlich: Ja
Definiert in:
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.





Quellcode

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