Skip to content
Docs
Get RestroPress

Filter

rpress_reservation_settings

Updated
On this page

Filters the resolved reservation settings.

Returned by rpress_reservation_settings(), which reads the Reservations options and applies defaults. The array has the keys interval (minutes between slots), capacity (seats per slot), max_party, lead_time (minutes), max_days (booking window), reminder_hours, reminders (bool), auto_confirm (bool) and paused (bool). Changing a value affects slot generation, validation and the email reminder everywhere the settings are read.

Parameters#

ParameterTypeDescription
$valuearrayResolved settings keyed by interval, capacity, max_party, lead_time, max_days, reminder_hours, reminders, auto_confirm and paused.

Return value#

array. The settings array, with the same keys.

Example#

function my_reservation_settings( $settings ) {
	$settings['max_party'] = 6;
	return $settings;
}
add_filter( 'rpress_reservation_settings', 'my_reservation_settings' );

Notes#

The first parameter is an array built inline from the saved options, not a variable.

Source#

Applied in:

  • includes/features/reservations/functions.php (line 42), in rpress_reservation_settings()

See also#

Was this page helpful?