Skip to content
Docs
Get RestroPress

Action

rpress_after_service_time

Updated
On this page

Fires after the time selector of the delivery or pickup template.

Runs at the end of the service time block of the delivery and pickup templates when the service is enabled. Use it to append fields or notes after the time dropdown.

Parameters#

ParameterTypeDescription
$servicestringService type being rendered, either delivery or pickup.

Example#

add_action( 'rpress_after_service_time', 'my_after_service_time' );
function my_after_service_time( $service ) {
	if ( 'delivery' === $service ) {
		echo '<p>' . esc_html__( 'Delivery times are estimates.', 'my-textdomain' ) . '</p>';
	}
}

Source#

Fired from:

  • templates/rpress-delivery.php (line 161)
  • templates/rpress-pickup.php (line 161)

See also#

Was this page helpful?