Are you annoyed with your wordpress install asking you for your FTP cradentials everytime you try to upgrade a plugin? I know I was. Thankfully, there’s a simple solution which will save the FTP login (username/password/server) so WordPress stops asking you for them. Here’s how you do it.
- Locate your WordPress root diectory and find the “wp-config.php” file.
- 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.
define("FTP_HOST", "localhost");
define("FTP_USER", "yourftpusername");
define("FTP_PASS", "yourftppassword");
Once you’ve made that edit, save the file and voila! No more punching in your ftp username and password all the time.