Create WordPress Admin from cPanel or MySQL or phpMyAdmin


Sometimes  we need to create admin user from hosting or cPanel. In that case, simply adding any user in wp_users won't work even if we put proper password "Salted Hash". It will surely log you in but you won't be able to see the Dashboard, To activate this superpower you will have to edit wp_capabilities from "wp_usermeta" and the value will be "a:1:{s:13:"administrator";b:1;}".


Comments

Popular posts from this blog

Mouse Right Button Click, CTRL +U disabling in HTML to protect content from Copying and Viewing source by visitor

Fixing AMPPS MySQL Not Starting and Unable to Change PHP Version