Filter
rpress_reservation_account_url
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#
| Parameter | Type | Description |
|---|---|---|
$url | string | Account 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), inrpress_reservation_account_url()
See also#
Was this page helpful?
