Method 1: Edit wp-config.php (if admin is limited)
- Log in to cPanel → File Manager.
- Go to your WordPress root folder (
public_htmlor your site folder). - Open
wp-config.phpfor editing. -
Make sure there is no line disabling plugin installation, like:
define('DISALLOW_FILE_MODS', true);- If this line exists, delete it or set it to
false:
define('DISALLOW_FILE_MODS', false); - If this line exists, delete it or set it to
- Save the file. Now WordPress Admin users should be able to add plugins.
Method 2: Give Admin Access via Database
- In cPanel → phpMyAdmin, open your WordPress database.
- Go to the table:
wp_usermeta. - Find your user ID and look for the key
wp_capabilities. -
Make sure it includes:
a:1:{s:13:"administrator";b:1;} - This ensures the account is full Admin and can install plugins.