Yoast\WP\SEO\Helpers
Indexing_Helper::get_limited_unindexed_count()
Returns a limited number of unindexed objects.
Метод класса: Indexing_Helper{}
Хуков нет.
Возвращает
int
. The total number of unindexed objects.
Использование
$Indexing_Helper = new Indexing_Helper(); $Indexing_Helper->get_limited_unindexed_count( $limit );
- $limit(int) (обязательный)
- Limit the number of unindexed objects that are counted.
Код Indexing_Helper::get_limited_unindexed_count() Indexing Helper::get limited unindexed count Yoast 20.0
public function get_limited_unindexed_count( $limit ) { $unindexed_count = 0; foreach ( $this->indexing_actions as $indexing_action ) { $unindexed_count += $indexing_action->get_limited_unindexed_count( $limit - $unindexed_count + 1 ); if ( $unindexed_count > $limit ) { return $unindexed_count; } } return $unindexed_count; }