Filter
rpress_account_hub_address_save_statuses
On this page
Filters the payment statuses at which a flagged checkout address is saved.
When a customer ticks the save-address option at checkout, the address is copied into their address book once the payment reaches one of these statuses. The default covers paid orders and orders accepted for offline payment, since cash on delivery moves to processing. The check runs on the rpress_update_payment_status action.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$statuses | string[] | Payment status slugs. Default: publish, complete, processing. |
Return value#
string[]. Payment status slugs.
Example#
add_filter( 'rpress_account_hub_address_save_statuses', 'my_address_save_statuses', 10, 1 );
function my_address_save_statuses( $statuses ) {
$statuses[] = 'pending';
return $statuses;
}
Source#
Applied in:
includes/features/account-hub/addresses.php(line 464), inrpress_account_hub_address_save_statuses()
See also#
Was this page helpful?
