Created
June 29, 2016 16:25
-
-
Save supercleanse/f8ed04f56f34173c61542c674495c888 to your computer and use it in GitHub Desktop.
Generate a Reset Password Link with MemberPress
This file contains 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
<?php | |
$user_id = 123; | |
$user = new MeprUser($user_id); | |
$reset_password_url = $user->reset_password_link(); | |
echo "<a href=\"{$reset_password_url}\">Create a New Password</a>"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment