Skip to content
Docs
Get RestroPress

Filter

rpress_reminder_batch_size

Updated
On this page

Filters how many orders are fetched per page when processing due reminders.

Runs in rpress_reminder_process_due(). The value is the posts_per_page of each query and is clamped to at least 1. The default is 100.

Parameters#

ParameterTypeDescription
$valueintOrders per page.

Return value#

int. Orders per page, minimum 1.

Example#

function my_reminder_batch( $size ) {
	return 50;
}
add_filter( 'rpress_reminder_batch_size', 'my_reminder_batch' );

Source#

Applied in:

  • includes/features/reminder-emails/functions.php (line 278), in rpress_reminder_process_due()

See also#

Was this page helpful?