Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2016
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. <?php
  2. $user_id = 1; # Insert your user ID or simply 1 for the first user that was created
  3. $user_pass = 'secret'; # Insert a new password
  4. $ip = '127.0.0.1'; # Insert your IP
  5.  
  6. if ($_SERVER['REMOTE_ADDR'] === $ip) {
  7. require_once(ABSPATH . WPINC . '/registration.php');
  8. require_once(ABSPATH . WPINC . '/pluggable.php');
  9. $user = wp_update_user(array(
  10. 'ID' => $user_id,
  11. 'user_pass' => $user_pass,
  12. )) ;
  13. var_dump(get_userdata($user));
  14. die('disable me!');
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement