Action
rpress_live_orders_before_toolbar
Fires above the toolbar on the Live Orders screen.
Runs once while the Live Orders page renders, before the toolbar. Features use it to add panels such as pause orders or busy mode. Output is printed directly, so escape it yourself.
Available since RestroPress 3.5.
Example#
add_action( 'rpress_live_orders_before_toolbar', 'my_live_orders_banner' );
function my_live_orders_banner() {
echo '<div class="notice notice-info inline"><p>' . esc_html__( 'Kitchen printer is offline.', 'my-plugin' ) . '</p></div>';
}
Source#
Fired from:
includes/admin/payments/views/html-live-orders.php(line 81)
Was this page helpful?
