Skip to content
Docs
Get RestroPress

Filter

rpress_reminder_skip_order_statuses

Updated
On this page

Filters the order statuses for which no reminder is sent.

Runs in rpress_reminder_check_order(). If the order status from rpress_get_order_status() is in the list, the reminder is skipped. The default is cancelled, completed, refunded and failed.

Parameters#

ParameterTypeDescription
$valuestring[]Order statuses that skip the reminder.

Return value#

string[]. Order statuses that skip the reminder.

Example#

function my_reminder_skip_statuses( $statuses ) {
	$statuses[] = 'ready';
	return $statuses;
}
add_filter( 'rpress_reminder_skip_order_statuses', 'my_reminder_skip_statuses' );

Source#

Applied in:

  • includes/features/reminder-emails/functions.php (line 170), in rpress_reminder_check_order()

See also#

Was this page helpful?