This is a quick tips for the WordPress users. I have faced this problem several times while I was using my previous host. Whenever you are trying to install/delete/upgrade a plugin or a theme from inside the WordPress admin panel it asks for FTP username and password. This doesn’t occur in all hosting environment but if you are using any free host or your server configuration is not well configured then this might happen.
This is how you can overcome the problem. Download your wp-config.php and add the following codes before the MySQL settings. And then upload it again into the same directory to re-write the old wp-config.php. Don’t forget to change the details with your FTP host, username and password.
/*Adding FTP login credentials to avoid WordPress asking for FTP details every time when upgrading a plugin*/
//*If you can use a SSL connection set this to true*
After that you shouldn’t face the problem again. For help see the following image:-
Let me know in the comments if you face any problem.