Filter
rpress_order_alerts_payment_statuses
On this page
Filters the payment statuses that count as real orders for alerts.
Runs in RPRESS_Order_Alerts::alert_payment_statuses(). Orders whose payment post status is in this list raise new-order alerts and are eligible for the unattended-order email. Pending online checkouts are left out so abandoned payments do not ring the kitchen; cash orders are 'processing'.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$value | string[] | Payment post statuses that qualify. |
Return value#
string[]. List of payment post statuses.
Example#
function my_alert_payment_statuses( $statuses ) {
$statuses[] = 'complete';
return $statuses;
}
add_filter( 'rpress_order_alerts_payment_statuses', 'my_alert_payment_statuses' );
Source#
Applied in:
includes/features/order-alerts/loader.php(line 404), inRPRESS_Order_Alerts::alert_payment_statuses()
See also#
Was this page helpful?
