Tuesday, September 22, 2020
therichposts@gmail.com
Wordpress Cheat Codes

WordPress cheat code to update User Password mysql query

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.

Ajay Malhotra
the authorAjay Malhotra
Hello to all. Welcome to therichpost.com. Myself Ajay Malhotra and I am freelance full stack developer. I love coding. I know Wordpress, Core php, Angularjs, Angular 2, Angular 6, Angular 7, Angular 8, Angular 9, Angular 10 Nodejs, laravel, Codeigniter, Shopify, Squarespace, Jquery, Google Map Api, Vuejs, Reactjs, Bigcommerce etc.

Leave a Reply

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