Skip to content
Docs
Get RestroPress

Filter

rpress_reservation_active_statuses

Updated
On this page

Filters the reservation statuses that hold seats.

Returned by rpress_reservation_active_statuses(). Reservations in these statuses count against the seats available in a time slot. The default is pending and confirmed. Add a custom status here if it should keep seats reserved, for example an awaiting payment status.

Parameters#

ParameterTypeDescription
$valuearrayList of status slugs that count against slot capacity.

Return value#

array. List of status slugs that hold seats.

Example#

function my_reservation_active_statuses( $statuses ) {
	$statuses[] = 'awaiting_payment';
	return $statuses;
}
add_filter( 'rpress_reservation_active_statuses', 'my_reservation_active_statuses' );

Notes#

The first parameter is a literal array, not a variable.

Source#

Applied in:

  • includes/features/reservations/functions.php (line 84), in rpress_reservation_active_statuses()

See also#

Was this page helpful?