Skip to content
Docs
Get RestroPress

Filter

rpress_user_registration_email_login_url

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

ParameterTypeDescription
$login_urlstringLogin 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), in rpress_new_user_notification()

See also#

Was this page helpful?