Created
November 22, 2018 19:21
-
-
Save ncesar/b188aed849ba7a7324027e762918ba23 to your computer and use it in GitHub Desktop.
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 include 'wp-load.php'; | |
//$user = get_user_by( 'email', 'emailcadastrado@email.com' ); | |
$user = get_user_by( 'slug', 'usuario' ); | |
//$user = get_user_by( 'login', 'usuario' ); | |
wp_set_password( "new_password", $user->ID ); | |
// Just use ID=1 for the super admin account | |
wp_set_password( "new_password", 1 ); | |
die("Done"); | |
//código para recuperar senha do Wordpress por FTP. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment