Action
rpress_fooditem_after_cart_button
Fires after the add to cart button of a menu item card.
Runs in the single item templates for all layouts directly after the purchase button area.
Example#
function my_fooditem_after_cart_button() {
echo '<span class="my-button-extra"></span>';
}
add_action( 'rpress_fooditem_after_cart_button', 'my_fooditem_after_cart_button', 10, 0 );
Notes#
In the modern template pack it fires even when the item is unavailable and no button is printed.
Source#
Fired from:
templates/fooditem/single.php(line 47)templates/grid/single.php(line 91)templates/list/single.php(line 68)templates/packs/modern/list/single.php(line 124)
See also#
Was this page helpful?
