# wordpress-seo/trunk/src/bulk-editor/domain/updates/batch-limit.php

Yoast SEO – Advanced SEO with real-time guidance and built-in AI, version trunk. 27 lines.

- Page: https://pluginprobe.com/plugins/wordpress-seo/trunk/code/src/bulk-editor/domain/updates/batch-limit.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/trunk/raw/src/bulk-editor/domain/updates/batch-limit.php
- Modified: 2026-07-07T11:18:50+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wordpress-seo/trunk/code/src/bulk-editor/domain/updates/batch-limit.php#L10-L20`.

```php
<?php

// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace Yoast\WP\SEO\Bulk_Editor\Domain\Updates;

/**
 * This class holds the rule for how many updates a single batch may contain.
 */
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;
	}
}

```
