Get logged in user with – custom plugin

Instead of using init hook why don’t you use the wp_loaded hook. This way, you’re sure that everything is loaded add_action(‘wp_loaded’,’do_stuff’); function do_stuff(){ $current_user = wp_get_current_user(); if ($current_user->ID > 0) { // rest of your code here // $current_user->ID will give you the ID of the current user. } }

WordPress password as plain text in email

No, WordPress passwords are not stored in plain text. They’re stored as hashes generated by an old version of PHPass, which I think does multiple rounds of salted MD5 hashes. You cannot extract the original password from this, by design. See Why shouldn’t I store passwords in plain text? on Information Security StackExchange. If you … Read more

Wordpres password as plain text in email

No, WordPress passwords are not stored in plain text. They’re stored as hashes generated by an old version of PHPass, which I think does multiple rounds of salted MD5 hashes. You cannot extract the original password from this, by design. See Why shouldn’t I store passwords in plain text? on Information Security StackExchange. If you … Read more