Filter
rpress_recoverable_payment_statuses
On this page
Filters the payment statuses from which a payment can be recovered.
Used by RPRESS_Payment::is_recoverable. A payment is recoverable when its status is in this list and it has no transaction ID. The defaults are pending, abandoned and failed.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$statuses | string[] | Recoverable status slugs. |
Return value#
string[]. The recoverable statuses.
Example#
function my_recoverable_statuses( $statuses ) {
$statuses[] = 'processing';
return $statuses;
}
add_filter( 'rpress_recoverable_payment_statuses', 'my_recoverable_statuses' );
Source#
Applied in:
includes/payments/class-rpress-payment.php(line 1615), inRPRESS_Payment::is_recoverable()
See also#
Was this page helpful?
