Home / Admin / Auto Register Login Link
Duplicate Snippet

Embed Snippet on Your Site

Auto Register Login Link

Replaces the login link included in the Auto Register email, which directs customers to log into their accounts.

Code Preview
php
<?php
// replace the default WordPress login link in Auto Register email
function custom_edd_auto_register_login_link( $default_email_body ) {
	// replace http://yoursite.com/sign-in with the URL you want to send users to
	$default_email_body = str_replace(
		wp_login_url(),
		'http://yoursite.com/sign-in',
		$default_email_body
	);
	return $default_email_body;
}
add_filter( 'edd_auto_register_email_body', 'custom_edd_auto_register_login_link' );

Comments

Add a Comment