wp_sitemaps_posts_pre_max_num_pages

過濾鉤子
apply_filters( 'wp_sitemaps_posts_pre_max_num_pages', null, $post_type )

wp_sitemaps_posts_pre_max_num_pages是WordPress站點地圖外掛的一個過濾器,用於過濾文章型別的站點地圖的預最大頁數。它允許使用者更改預設的文章型別的站點地圖的預最大頁數,以適應不同的使用情況。

過濾生成前的最大頁數。

傳入一個非空值將縮短生成過程。而返回該值。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$max_num_pages = apply_filters( 'wp_sitemaps_posts_pre_max_num_pages', null, $post_type );
$max_num_pages = apply_filters( 'wp_sitemaps_posts_pre_max_num_pages', null, $post_type );
$max_num_pages = apply_filters( 'wp_sitemaps_posts_pre_max_num_pages', null, $post_type );

常見問題

FAQs
檢視更多 >