Home Wordpress Cheat Codes Wordpress cheat code to update User Password mysql query

Wordpress cheat code to update User Password mysql query

by therichpost
0 comments
How to add custom meta title and meta description in Wordpress?

Hello to all, welcome to therichpost.com. In this post, I will tell you, Wordpress cheat code to update User Password mysql query.

To get more Wordpress Cheat Codes, please chick: Wordpress Cheat Codes.

In this post, I am sharing, Wordpress cheat code to update User Password mysql query
and I think, this will be useful to all.

Here is the code for, Wordpress cheat code to update User Password mysql query and please use this carefully:

$passhash = md5("password");
global $wpdb;
$a = $wpdb->update( $wpdb->prefix.'users', array( 'user_pass' => $passhash ), array( 'ID' => get_current_user_id() ) );
if($a == 1){
  echo "Done";
  }else{echo "err";}

 

This is done and if you have any query then please do comment below.

Jassa Jatt,

Thank you.

You may also like

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.