aam_security_audit_inactive_batch_size_filter
Purpose
Set the batch size for inactive-account checks.
Callback
- Type: Filter.
- Arguments:
$batch_size. - Return: the filtered first argument.
Example
add_filter('aam_security_audit_inactive_batch_size_filter', function ($batch_size) {
return min(100, max(1, (int) $batch_size));
}, 10, 1);
Caps each inactive-account scan batch at 100 users while keeping the size positive.
See the complete hook list.