Skip to content
Docs
Get RestroPress

Action

rpress_fooditems_list_after

Updated
On this page

Fires once after all categories in the menu list.

Runs once at the end of the menu list templates after every category has been printed, when the attributes and a query exist.

Parameters#

ParameterTypeDescription
$attsarrayThe menu item shortcode attributes.
$fooditemsWP_QueryThe query object of the last category that was processed.

Example#

function my_fooditems_list_after( $atts, $fooditems ) {
	echo '<p class="my-menu-footer">' . esc_html__( 'Ask about allergens.', 'my-textdomain' ) . '</p>';
}
add_action( 'rpress_fooditems_list_after', 'my_fooditems_list_after', 10, 2 );

Source#

Fired from:

  • templates/fooditem/fooditems.php (line 147)
  • templates/grid/fooditems.php (line 147)
  • templates/list/fooditems.php (line 138)
Was this page helpful?