Skip to content

Instantly share code, notes, and snippets.

@mahmutbayri
Created July 19, 2015 12:06
Show Gist options
  • Save mahmutbayri/6d428bcde846c749bda8 to your computer and use it in GitHub Desktop.
Save mahmutbayri/6d428bcde846c749bda8 to your computer and use it in GitHub Desktop.
require_once('wp-load.php');
$userName = "admin"; //yönetici veya herhangi bir kullanıcı
$newPassword = "yenisifre"; //olmasını istediğiniz şifre
$st = "UPDATE " . $table_prefix . "users SET user_pass = '" . wp_hash_password($newPassword) . "' WHERE user_login = '" . $userName . "'";
echo $wpdb->query($st);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment