Filter
rpress_reminder_payment_statuses
On this page
Filters the payment post statuses that are eligible for a reminder.
Runs when a single order is checked in rpress_reminder_check_order() and again when due orders are queried in rpress_reminder_process_due(). The default is publish, processing and complete. Orders with any other payment status never receive a reminder.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$value | string[] | Eligible payment post statuses. |
Return value#
string[]. Eligible payment post statuses.
Example#
function my_reminder_payment_statuses( $statuses ) {
$statuses[] = 'pending';
return $statuses;
}
add_filter( 'rpress_reminder_payment_statuses', 'my_reminder_payment_statuses' );
Notes#
Fired from two places with the same default and the same meaning.
Source#
Applied in:
includes/features/reminder-emails/functions.php(line 165), inrpress_reminder_check_order()includes/features/reminder-emails/functions.php(line 290), inrpress_reminder_process_due()
See also#
Was this page helpful?
