Yoast\WP\SEO\Helpers
Indexing_Helper::get_limited_filtered_unindexed_count_background()
Returns the total number of unindexed objects that can be indexed in the background and applies a filter for third party integrations.
Метод класса: Indexing_Helper{}
Хуки из метода
Возвращает
int
. The total number of unindexed objects that can be indexed in the background.
Использование
$Indexing_Helper = new Indexing_Helper(); $Indexing_Helper->get_limited_filtered_unindexed_count_background( $limit );
- $limit(int) (обязательный)
- Limit the number of unindexed objects that are counted.
Код Indexing_Helper::get_limited_filtered_unindexed_count_background() Indexing Helper::get limited filtered unindexed count background Yoast 23.5
public function get_limited_filtered_unindexed_count_background( $limit ) { $unindexed_count = $this->get_limited_unindexed_count( $limit, $this->background_indexing_actions ); if ( $unindexed_count > $limit ) { return $unindexed_count; } /** * 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. * * @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 \apply_filters( 'wpseo_indexing_get_limited_unindexed_count_background', $unindexed_count, $limit ); }