Yoast\WP\SEO\Bulk_Editor\Domain\Updates
Batch_Limit{}
This class holds the rule for how many updates a single batch may contain.
Хуков нет.
Использование
$Batch_Limit = new Batch_Limit(); // use class methods
Методы
- public static is_within_limit( int $count )
Код Batch_Limit{} Batch Limit{} Yoast 28.3
class Batch_Limit {
/**
* The maximum number of updates in a single batch.
*/
public const MAX_ITEMS = 20;
/**
* Whether the given number of updates is within the batch limit.
*
* @param int $count The number of updates in the batch.
*
* @return bool Whether the given number of updates is within the batch limit.
*/
public static function is_within_limit( int $count ): bool {
return $count <= self::MAX_ITEMS;
}
}