Skip to content
Docs
Get RestroPress

Action

rpress_reservation_form_before_submit

Updated
On this page

Fires before the submit button of the reservation form.

Runs while the [rpress_reservation] form is rendered, after the note field and just before the Request reservation button. Use it for extra fields or notices such as an occasion field or a deposit notice.

Available since RestroPress 3.5.

Parameters#

ParameterTypeDescription
$valuesarraySubmitted values when the form is shown again after an error.
$errorsWP_ErrorField errors keyed by field name.

Example#

function my_reservation_deposit_notice( $values, $errors ) {
	echo '<p class="rpress-res-field">A deposit may be required for large parties.</p>';
}
add_action( 'rpress_reservation_form_before_submit', 'my_reservation_deposit_notice', 10, 2 );

Source#

Fired from:

  • includes/features/reservations/frontend.php (line 451), in rpress_reservation_shortcode()

See also#

Was this page helpful?