Does your WordPress site ask you for FTP login information every time you want to add, delete or upgrade a plugin? So now don’t worry there’s a simple solution which will save the FTP login (username/password/server) so WordPress will stop asking you for FTP details Here’s how you can do it :
1. Locate your WordPress root diectory and find the “wp-config.php” file.
2. Edit the file and insert this somewhere in the middle as it’s own block, we normally put it after the mysql username/password block.
/*** FTP login settings ***/
Of course you’ll need to change “yourftpusername” and “yourftppassword” to the actual FTP usernames/passwords for your site. Once you’ve made that edit, save the file. Now it won’t ask you your ftp username and password all the time.