Action
rpress_checkout_tip_slot
Fires inside the checkout payment step where a tip picker belongs, above the payment methods.
Hook your tip picker here and print its markup. Core wraps the output in a div.rpress-checkout-tip-slot and runs this from rpress_payment_mode_before_gateways_wrap at priority 5. The wrapper and the action are skipped when nothing is hooked.
Available since RestroPress 3.5.1.
Example#
add_action( 'rpress_checkout_tip_slot', 'my_tip_picker', 10, 0 );
function my_tip_picker() {
echo '<p class="my-tip-note">' . esc_html__( 'You can add a tip for the driver before paying.', 'my-plugin' ) . '</p>';
}
Source#
Fired from:
includes/features/checkout-flow/functions.php(line 83), inrpress_checkout_tip_slot()
See also#
Was this page helpful?
