Action
rpress_fooditem_before
Fires at the start of the inner area of a menu item card.
Runs in the single item templates for all layouts, before the content columns. Use it to print content at the top of the card.
Example#
function my_fooditem_before() {
echo '<span class="my-card-flag"></span>';
}
add_action( 'rpress_fooditem_before', 'my_fooditem_before', 10, 0 );
Source#
Fired from:
templates/fooditem/single.php(line 35)templates/grid/single.php(line 78)templates/list/single.php(line 54)templates/packs/modern/list/single.php(line 62)
See also#
Was this page helpful?
