Skip to content
Docs
Get RestroPress

Action

rpress_admin_order_preview_before_fooditems

Updated
On this page

Fires in the order preview modal before the ordered items.

Runs inside the order preview template after the summary details and before the items table. Output is part of the shared template.

Example#

function my_order_preview_before_items() {
	echo '<p class="description">' . esc_html__( 'Items below are for the kitchen.', 'my-plugin' ) . '</p>';
}
add_action( 'rpress_admin_order_preview_before_fooditems', 'my_order_preview_before_items' );

Notes#

No arguments are passed. Use template syntax such as data.id to show order-specific values.

Source#

Fired from:

  • includes/admin/payments/class-payments-table.php (line 3089), in RPRESS_Payment_History_Table::order_preview_template()

See also#

Was this page helpful?