Show MD5 Password in user section

To get MD5 password in user listing column, you have to get user_pass using get_userdata(). see below example how to get user_pass from get_userdata() add_action(‘manage_users_custom_column’, ‘cmr_supwd_show_upwd_col_data’, 10, 3); function cmr_supwd_show_upwd_col_data($value, $column_name, $user_id) { $user = get_userdata( $user_id ); if ( ‘user_pass’ == $column_name ) return $user->user_pass; return $value; }

Uncheck the box “Send User Notification” by default on new-user.php

There does not seem to be an easy overwrite without replicating the whole user interface. So the quickest solution might be to un-check the checkbox via JavaScript: add_action(‘admin_footer’, ‘uncheck_send_user_notification’); function uncheck_send_user_notification() { $currentScreen = get_current_screen(); if (‘user’ === $currentScreen->id) { echo ‘<script type=”text/javascript”>document.getElementById(“send_user_notification”).checked = false;</script>’; } } The script is only injected on the user-new.php … Read more

Rule to redirect non logged in User to Custom Registration/login Page in .htaccess file

RewriteCond %{HTTP_COOKIE} !.*wordpress_logged_in.*$ [NC] RewriteCond %{REQUEST_URI} ^(.*?/?)purchase.php RewriteRule . https://%{HTTP_HOST}%1/registrationurl [L,QSA] This will result in a 302 (temporary) redirect to /purchaseads//registrationurl – note the double-slash. This double-slash is passed through to the $_SERVER[‘REQUEST_URI’] variable that WordPress uses to route the URL. So, this may result in WP not being able to route the request. You … Read more

How can I check if a user’s email exists in the database

There’s the email_exists() function that could help you with checking if an email already exists among users. It’s e.g. used by register_new_user(). More here: https://developer.wordpress.org/reference/functions/email_exists/ https://developer.wordpress.org/reference/functions/register_new_user/

Force logout ALL users at a certain time

This should be possible, WordPress provides the WP_Session_Tokens class to manage logged in sessions. Then it’s just a matter of connecting it to the cron. The following is a simple plugin file which I think should do it. Add it to the plugins directory and it should start working. *not tested. <?php /* Plugin Name: … Read more