Skip to content

Instantly share code, notes, and snippets.

@SeanChDavis
Created February 17, 2017 16:11
Show Gist options
  • Select an option

  • Save SeanChDavis/051011241a6900b88ca9f3e3025720f0 to your computer and use it in GitHub Desktop.

Select an option

Save SeanChDavis/051011241a6900b88ca9f3e3025720f0 to your computer and use it in GitHub Desktop.
EDD Auto Register Replace Login Link
<?php // DO NOT COPY THIS LINE
// replace the default WordPress login link in Auto Register
function custom_edd_auto_register_login( $login_url ) {
$login_url = str_replace(
'http://yoursite.com/wp-login.php',
'http://yoursite.com/sign-in',
$login_url
);
return $login_url;
}
add_filter( 'edd_auto_register_email_body', 'custom_edd_auto_register_login' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment