Skip to content
Docs
Get RestroPress

Filter

rpress_reservation_booking_page_url

Updated
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#

ParameterTypeDescription
$valuestringBooking 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), in rpress_reservation_booking_page_url()

See also#

Was this page helpful?