Filter
rpress_reminder_max_pages
On this page
Filters the maximum number of pages scanned per run when processing due reminders.
Runs in rpress_reminder_process_due(). Each page holds the number of orders given by the batch size, so this caps the work per run. The value is clamped to at least 1. The default is 10.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$value | int | Maximum number of pages. |
Return value#
int. Maximum pages, minimum 1.
Example#
function my_reminder_max_pages( $pages ) {
return 5;
}
add_filter( 'rpress_reminder_max_pages', 'my_reminder_max_pages' );
Source#
Applied in:
includes/features/reminder-emails/functions.php(line 279), inrpress_reminder_process_due()
See also#
Was this page helpful?
