Created
July 16, 2019 07:37
-
-
Save eyecandy91/b0d2b32137dc227287fd54fc9380a6b7 to your computer and use it in GitHub Desktop.
wp skip email address reset password unique link
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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