Skip to content
Docs
Get RestroPress

Filter

rpress_reservation_account_url

Updated
On this page

Filters the URL of the My Reservations section in the customer account.

Runs at the end of rpress_reservation_account_url(). The default is the customer dashboard page with the rpress_account=reservations query argument and the #user-my-reservations anchor, or an empty string when no dashboard page exists. It is used in links, such as in emails.

Parameters#

ParameterTypeDescription
$urlstringAccount section URL, or empty.

Return value#

string. URL, or empty string.

Example#

function my_reservation_account_url( $url ) {
	return home_url( '/my-bookings/' );
}
add_filter( 'rpress_reservation_account_url', 'my_reservation_account_url' );

Source#

Applied in:

  • includes/features/reservations/account.php (line 68), in rpress_reservation_account_url()

See also#

Was this page helpful?