Skip to content
Docs
Get RestroPress

Action

before_fooditems_list

Updated
On this page

Fires before the menu item list in the menu templates.

Runs before the category loop inside the menu item list wrapper. The hook name has no rpress_ prefix.

Example#

function my_before_fooditems_list() {
	echo '<div class="my-menu-notice">' . esc_html__( 'Menu prices include tax.', 'my-textdomain' ) . '</div>';
}
add_action( 'before_fooditems_list', 'my_before_fooditems_list', 10, 0 );

Notes#

Fires once per list wrapper. In the fooditem layout it fires in both the grid-mode and standard branches.

Source#

Fired from:

  • templates/fooditem/fooditems.php (line 56)
  • templates/fooditem/fooditems.php (line 102)
  • templates/grid/fooditems.php (line 83)
  • templates/list/fooditems.php (line 75)

See also#

Was this page helpful?