wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_sitemaps_posts_pre_max_num_pages › WordPress Filter Hooks

Da5.5.0
Deprecaton/a
apply_filters( 'wp_sitemaps_posts_pre_max_num_pages', null, $post_type )
Parametri: (2)
  • (int|null) $max_num_pages The maximum number of pages. Default null.
    Richiesto:
  • (string) $post_type Post type name.
    Richiesto:
Definito a:
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.





Sorgenti

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