Skip to content
Docs
Get RestroPress

Action

rpress_checkout_service_options

Updated
On this page

Fires at the top of the checkout form wrapper, before the purchase form.

Runs inside rpress_checkout_form() when the cart has items or fees, immediately before rpress_before_purchase_form. Core uses it to apply the flat delivery fee (priority 9). Hook it to output content above the checkout form.

Example#

function my_checkout_service_notice() {
	echo '<p class="my-order-notice">' . esc_html__( 'Orders close at 10 PM.', 'my-textdomain' ) . '</p>';
}
add_action( 'rpress_checkout_service_options', 'my_checkout_service_notice', 10, 0 );

Notes#

Since 3.4 the default delivery-steps output is detached from this hook on the wp action, because the steps are rendered inside the fulfillment card instead.

Source#

Fired from:

  • includes/checkout/template.php (line 31), in rpress_checkout_form()

See also#

Was this page helpful?