Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save eyecandy91/b0d2b32137dc227287fd54fc9380a6b7 to your computer and use it in GitHub Desktop.
Save eyecandy91/b0d2b32137dc227287fd54fc9380a6b7 to your computer and use it in GitHub Desktop.
wp skip email address reset password unique link
$user = new WP_User( (int) $user_id );
$adt_rp_key = get_password_reset_key( $user );
$user_login = $user->user_login;
$rp_link = '<a href="' . network_site_url("wp-login.php?action=rp&key=$adt_rp_key&login=" . rawurlencode($user_login), 'login') . '">' . network_site_url("wp-login.php?action=rp&key=$adt_rp_key&login=" . rawurlencode($user_login), 'login') . '</a>';
?>
<div id="signup-welcome">
<p><span class="h3"><?php _e('Username:'); ?></span> <?php echo $user->user_login ?></p>
<p>To set your password, select the following link: <?php echo $rp_link; ?></p>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment