Filter
rpress_reminder_skip_order_statuses
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#
| Parameter | Type | Description |
|---|---|---|
$value | string[] | 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), inrpress_reminder_check_order()
See also#
Was this page helpful?
