# boolean_smtp_migration_max_log_rows

> Filters the maximum number of email-log rows an import reads from another plugin.

Filter · Tier B · Since 1.0.0



## Signature

```php
add_filter( 'boolean_smtp_migration_max_log_rows', $callback, 10, 1 );
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `$max` | `int` | Rows, newest first; 0 for no cap. Default 5000. |

**Returns** `int` — 

## Fires in

- [app/Services/Migration/MigrationScanner.php:357](https://github.com/booleanpress/boolean-smtp-src/blob/main/app/Services/Migration/MigrationScanner.php#L357) — `BooleanSmtp\Services\Migration\MigrationScanner::maxLogRows()`

## Example

```php
add_filter( 'boolean_smtp_migration_max_log_rows', function ( int $max ) {
    return $max;
}, 10, 1 );
```
