Skip to content
Docs
Get RestroPress

Action

rpress_menu_page_top

Updated
On this page

Fires at the top of the menu page, above the menu toolbar, in the grid and list layouts.

Runs at the start of the menu template before the category toolbar and menu items are output. Template packs use it to print a store header band. Output is echoed directly into the page.

Example#

add_action( 'rpress_menu_page_top', 'my_menu_banner' );
function my_menu_banner() {
	echo '<div class="my-menu-banner">' . esc_html__( 'Order before 9pm for same-day service.', 'my-textdomain' ) . '</div>';
}

Notes#

Fired from both the grid and list menu item templates.

Source#

Fired from:

  • templates/grid/fooditems.php (line 23)
  • templates/list/fooditems.php (line 58)
Was this page helpful?