Skip to content

Instantly share code, notes, and snippets.

@ncesar
Created November 22, 2018 19:21
Show Gist options
  • Save ncesar/b188aed849ba7a7324027e762918ba23 to your computer and use it in GitHub Desktop.
Save ncesar/b188aed849ba7a7324027e762918ba23 to your computer and use it in GitHub Desktop.
<?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