Filter
rpress_user_registration_email_login_url
On this page
Filters the login URL used in the welcome email.
Runs in rpress_new_user_notification(). The default is wp_login_url(). In HTML emails it becomes a 'Click here to log in' link; in plain text emails it is printed after 'To log in, visit:'.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$login_url | string | Login URL. |
Return value#
string. Login URL.
Example#
function my_welcome_login_url( $login_url ) {
return home_url( '/my-account/' );
}
add_filter( 'rpress_user_registration_email_login_url', 'my_welcome_login_url' );
Notes#
The URL is inserted into the HTML link without further escaping, so escape it yourself if it carries user input.
Source#
Applied in:
includes/user-functions.php(line 546), inrpress_new_user_notification()
See also#
Was this page helpful?
