Skip to content
Docs
Get RestroPress

Filter

rpress_reminder_max_pages

Updated
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#

ParameterTypeDescription
$valueintMaximum 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), in rpress_reminder_process_due()

See also#

Was this page helpful?