Filter
rpress_live_orders_columns
On this page
Filters the column definitions of the Live Orders board.
Each entry is keyed by column slug and has label, statuses (order status slugs shown in the column), default_status and tone. The default columns are new, accepted, preparing, ready and out. Orders whose status is not listed in any column are left off the board.
Available since RestroPress 3.3.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$columns | array | Associative array of column definitions. |
Return value#
array. The column definitions.
Example#
function my_live_orders_columns( $columns ) {
$columns['out']['label'] = esc_html__( 'On the Way', 'my-plugin' );
return $columns;
}
add_filter( 'rpress_live_orders_columns', 'my_live_orders_columns' );
Source#
Applied in:
includes/admin/payments/class-live-orders.php(line 75), inRP_Live_Orders::get_columns()
See also#
Was this page helpful?
