wpseo_sitemap_entries_per_page хук-фильтрYoast 1.0

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.

Использование

add_filter( 'wpseo_sitemap_entries_per_page', 'wp_kama_wpseo_sitemap_entries_per_page_filter' );

/**
 * Function for `wpseo_sitemap_entries_per_page` filter-hook.
 * 
 * @param int $entries The maximum number of entries per XML sitemap.
 *
 * @return int
 */
function wp_kama_wpseo_sitemap_entries_per_page_filter( $entries ){

	// filter...
	return $entries;
}
$entries(int)
The maximum number of entries per XML sitemap.

Где вызывается хук

WPSEO_Sitemaps::get_entries_per_page()
wpseo_sitemap_entries_per_page
yoast/inc/sitemaps/class-sitemaps.php 577
$entries = (int) apply_filters( 'wpseo_sitemap_entries_per_page', 1000 );

Где используется хук в Yoast SEO

Использование не найдено.