WPSEO_Sitemaps::get_entries_per_page
Get the maximum number of entries per XML sitemap.
Метод класса: WPSEO_Sitemaps{}
Хуки из метода
Возвращает
int. The maximum number of entries.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_entries_per_page();
Код WPSEO_Sitemaps::get_entries_per_page() WPSEO Sitemaps::get entries per page Yoast 27.6
protected function get_entries_per_page() {
/**
* Filter the maximum number of entries per XML sitemap.
*
* After changing the output of the filter, make sure that you disable and enable the
* sitemaps to make sure the value is picked up for the sitemap cache.
*
* @param int $entries The maximum number of entries per XML sitemap.
*/
$entries = (int) apply_filters( 'wpseo_sitemap_entries_per_page', 1000 );
return $entries;
}