Skip to content
Docs
Get RestroPress

Filter

rpress_live_orders_columns

Updated
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#

ParameterTypeDescription
$columnsarrayAssociative 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), in RP_Live_Orders::get_columns()

See also#

Was this page helpful?