Skip to content
Docs
Get RestroPress

Action

rpress_cart_footer_buttons

Updated
On this page

Fires inside the footer button row of the checkout cart table.

Runs inside a footer row below the total. The row is only printed when at least one callback is hooked here. Core hooks the update cart button when item quantities are enabled and the save cart button when cart saving is not disabled.

Example#

function my_cart_footer_buttons() {
	echo '<a class="button my-continue" href="' . esc_url( home_url( '/menu/' ) ) . '">' . esc_html__( 'Add more items', 'my-textdomain' ) . '</a>';
}
add_action( 'rpress_cart_footer_buttons', 'my_cart_footer_buttons', 10, 0 );

Notes#

Because the row is only shown when the hook has callbacks, adding one makes the row appear.

Source#

Fired from:

  • templates/checkout_cart.php (line 206)

See also#

Was this page helpful?