Filter
rpress_command_center_cash_gateways
On this page
Filters the gateway IDs treated as cash payments in the Command Center and order screens.
Orders paid with one of these gateways are treated as cash due on handoff, so an unpaid status is not flagged as a payment problem. The default list is cash_on_delivery, cash, cod and manual. Add the ID of any custom pay-on-delivery gateway here.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$gateways | array | Gateway IDs treated as cash. |
Return value#
array. The list of cash gateway IDs.
Example#
function my_cash_gateways( $gateways ) {
$gateways[] = 'pay_at_counter';
return $gateways;
}
add_filter( 'rpress_command_center_cash_gateways', 'my_cash_gateways' );
Notes#
Applied from three places (Command Center, the Orders list table and Reports intelligence). The latter two call the Command Center method when available, so the same list is used everywhere. The ID is compared strictly with in_array().
Source#
Applied in:
includes/admin/dashboard/class-rpress-command-center-dashboard.php(line 68), inRPRESS_Command_Center_Dashboard::cash_gateways()includes/admin/payments/class-payments-table.php(line 1053), inRPRESS_Payment_History_Table::is_cash_gateway()includes/admin/reporting/class-rpress-reports-intelligence.php(line 1603), inRPRESS_Reports_Intelligence::cash_gateways()
See also#
Was this page helpful?
