Action
rpress_reservation_form_before_submit
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#
| Parameter | Type | Description |
|---|---|---|
$values | array | Submitted values when the form is shown again after an error. |
$errors | WP_Error | Field 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), inrpress_reservation_shortcode()
See also#
Was this page helpful?
