Filter
rpress_offline_payment_gateways
On this page
Filters the gateway IDs treated as offline gateways.
Runs in rpress_is_offline_gateway. The default list is manual, cash_on_delivery and cod. Orders from offline gateways can be auto-accepted without waiting for the payment status to become publish or complete. Add the ID of an extension gateway that collects payment in person.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$offline_gateways | array | List of gateway IDs. Defaults to manual, cash_on_delivery and cod. |
Return value#
array. The list of offline gateway IDs.
Example#
function my_offline_gateways( $offline_gateways ) {
$offline_gateways[] = 'my_pay_at_counter';
return $offline_gateways;
}
add_filter( 'rpress_offline_payment_gateways', 'my_offline_gateways', 10, 1 );
Source#
Applied in:
includes/gateways/functions.php(line 97), inrpress_is_offline_gateway()
See also#
Was this page helpful?
