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

Filter: wpseo_indexing_get_limited_unindexed_count_background Allow changing the amount of unindexed objects that can be indexed in the background, and allow for a maximum number of items counted to improve performance.

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

add_filter( 'wpseo_indexing_get_limited_unindexed_count_background', 'wp_kama_wpseo_indexing_get_limited_unindexed_count_background_filter', 10, 2 );

/**
 * Function for `wpseo_indexing_get_limited_unindexed_count_background` filter-hook.
 * 
 * @param int       $unindexed_count The amount of unindexed objects.
 * @param int|false $limit           Limit the number of unindexed objects that need to be counted. False if it doesn't need to be limited.
 *
 * @return int
 */
function wp_kama_wpseo_indexing_get_limited_unindexed_count_background_filter( $unindexed_count, $limit ){

	// filter...
	return $unindexed_count;
}
$unindexed_count(int)
The amount of unindexed objects.
$limit(int|false)
Limit the number of unindexed objects that need to be counted. False if it doesn't need to be limited.

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

Indexing_Helper::get_limited_filtered_unindexed_count_background()
wpseo_indexing_get_limited_unindexed_count_background
yoast/src/helpers/indexing-helper.php 393
return \apply_filters( 'wpseo_indexing_get_limited_unindexed_count_background', $unindexed_count, $limit );

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

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