Filter
rpress_user_verification_base_url
On this page
Filters the base URL used for account verification links.
Runs in rpress_get_user_verification_page(). The default is the permalink of the Order History page when one is set, otherwise the site home URL. Verification links, redirects and expiry messages are built from this URL.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$url | string | The base URL. |
Return value#
string. The base URL for verification links.
Example#
function my_verification_base_url( $url ) {
return home_url( '/my-account/' );
}
add_filter( 'rpress_user_verification_base_url', 'my_verification_base_url' );
Notes#
Because tokens are computed from the URL path, changing this value invalidates links already sent.
Source#
Applied in:
includes/user-functions.php(line 855), inrpress_get_user_verification_page()
Was this page helpful?
