Action
rpress_fooditems_list_after
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#
| Parameter | Type | Description |
|---|---|---|
$atts | array | The menu item shortcode attributes. |
$fooditems | WP_Query | The 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?
