Filter
rpress_reservation_active_statuses
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#
| Parameter | Type | Description |
|---|---|---|
$value | array | List 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), inrpress_reservation_active_statuses()
See also#
Was this page helpful?
