wp_sitemaps_users_pre_max_num_pages

過濾鉤子
apply_filters( 'wp_sitemaps_users_pre_max_num_pages', null )

wp_sitemaps_users_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_users_pre_max_num_pages', null );
$max_num_pages = apply_filters( 'wp_sitemaps_users_pre_max_num_pages', null );
$max_num_pages = apply_filters( 'wp_sitemaps_users_pre_max_num_pages', null );

常見問題

FAQs
檢視更多 >