Skip to content
Docs
Get RestroPress

Action

rpress_get_delivery_steps

Updated
On this page

Fires where the service type (delivery steps) selector is output on the checkout.

Runs inside the rp-checkout-service-option container, which is output on the rpress_checkout_service_options action. The default callback, rpress_add_delivery_steps, prints the delivery steps template. Unhook or add callbacks to change what appears there.

Example#

function my_after_delivery_steps() {
	echo '<p class="my-delivery-note">' . esc_html__( 'Delivery times are estimates.', 'my-textdomain' ) . '</p>';
}
add_action( 'rpress_get_delivery_steps', 'my_after_delivery_steps', 20, 0 );

Notes#

rpress_add_delivery_steps is attached at priority 10 and prints the selector, so use a later priority to add content after it.

Source#

Fired from:

  • includes/cart/template.php (line 400), in rpress_checkout_service_options_delivery_steps()

See also#

Was this page helpful?