Filter
rpress_reservation_booking_page_url
On this page
Filters the URL of the reservation booking page.
Runs at the end of rpress_reservation_booking_page_url(). The default is the permalink of the configured booking page, or an empty string when none is set. An empty URL hides the Book a table link in the customer account.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$value | string | Booking page URL, or empty. |
Return value#
string. URL, or empty string.
Example#
function my_booking_page_url( $url ) {
return $url ? $url : home_url( '/book/' );
}
add_filter( 'rpress_reservation_booking_page_url', 'my_booking_page_url' );
Source#
Applied in:
includes/features/reservations/account.php(line 98), inrpress_reservation_booking_page_url()
See also#
Was this page helpful?
