Skip to content
Docs
Get RestroPress

Action

rpress_before_fooditem_history

Updated
On this page

Fires before the customer's menu item history table is output.

Runs in the menu item history template when the current user has at least one order. It fires before the opening of the history table. It does not run when the user has no orders.

Example#

add_action( 'rpress_before_fooditem_history', 'my_before_fooditem_history' );
function my_before_fooditem_history() {
	echo '<p>' . esc_html__( 'Items from your recent orders.', 'my-textdomain' ) . '</p>';
}

Source#

Fired from:

  • templates/history-fooditems.php (line 17)

See also#

Was this page helpful?