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 | |
// Force update our username (user_login) | |
global $wpdb; | |
$tablename = $wpdb->prefix . "users"; | |
// method 1 | |
//$sql = $wpdb->prepare("UPDATE %s SET user_login=%s WHERE ID=%d", $tablename, $user_email, $user_id); | |
//$wpdb->query($sql); | |