Monday, 14 September 2015

How to Reset a WordPress User Password hosted on Localhost

Source : How to Reset a WordPress User Password hosted on Localhost
Published On : September 14, 2015 at 12:54PM
By : Agbonghama Collins

While working on a WordPress site hosted on a developmental server (simply called, localhost) in my computer, I mistakenly updated my admin password to a random WordPress generated one. Thus, I was logged out and no longer was able to log in again because I have no record of the new password. Using the password […]


For More Go to : w3guy - Diary of a Geek

Labels:

Thursday, 3 September 2015

How to fix “Warning: An existing WordPress network was detected.”

Source : How to fix “Warning: An existing WordPress network was detected.”
Published On : September 03, 2015 at 02:28PM
By : Agbonghama Collins

While converting a WordPress single install to multisite, the following error notice was displayed at the Network Setup admin page. Warning: An existing WordPress network was detected. It took me quite some time to finally figure out what I was doing wrong. Mind you, the instruction in Network Setup page clearly stated that the PHP […]


For More Go to : w3guy - Diary of a Geek

Labels:

Tuesday, 1 September 2015

How to Destroy a User Session in WordPress

Source : How to Destroy a User Session in WordPress
Published On : September 01, 2015 at 07:31PM
By : Agbonghama Collins

Below is a PHP function that can programmatically logout or destroy a user session in WordPress taking the user ID as an argument. /** * Destroy the session of a user. * * @param int $user_id */ function pp_destroy_user_session( $user_id ) { // get all sessions for user with ID $user_id $sessions = WP_Session_Tokens::get_instance( $user_id […]


For More Go to : w3guy - Diary of a Geek

Labels: