Filter
rpress_reservation_min_fill_seconds
On this page
Filters the minimum seconds a person needs to fill in the reservation form.
Part of the honeypot check in rpress_reservation_handle_submit(). A submission is silently dropped (the guest is redirected to the success screen) only when the hidden honeypot field is filled and the form was submitted faster than this many seconds after it was rendered, or no render timestamp was posted. Raising the value makes the check stricter.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$value | int | Default minimum fill time in seconds. |
Return value#
int. Minimum number of seconds between rendering and submitting the form.
Example#
function my_reservation_min_fill_seconds( $seconds ) {
return 6;
}
add_filter( 'rpress_reservation_min_fill_seconds', 'my_reservation_min_fill_seconds' );
Notes#
The first parameter is a literal default (4), not a variable. A fast submission with an empty honeypot field is not dropped by this check.
Source#
Applied in:
includes/features/reservations/frontend.php(line 129), inrpress_reservation_handle_submit()
See also#
Was this page helpful?
