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

Fixing AMPPS MySQL Not Starting and Unable to Change PHP Version

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

Creating Any Data Types in Dart and Flutter