Filter
rpress_orders_due_soon_window_minutes
On this page
Filters the number of minutes before an order's due time that counts as due soon.
Used by the Orders list to label orders as due soon and to build the due-soon counts. The default is 60 and the value is cast to an integer with a minimum of 1.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$minutes | int | Default window in minutes. |
Return value#
int. Number of minutes.
Example#
function my_due_soon_window( $minutes ) {
return 30;
}
add_filter( 'rpress_orders_due_soon_window_minutes', 'my_due_soon_window' );
Notes#
Due soon and late counts are cached briefly in the object cache, so a change can take up to a minute to show.
Source#
Applied in:
includes/admin/payments/class-payments-table.php(line 1037), inRPRESS_Payment_History_Table::get_due_soon_window_minutes()
See also#
Was this page helpful?
