If you often install, delete or upgrade plugins or themes, you might be annoyed that WordPress asks for your FTP credentials every time. Here is a simple code snippet to change the filesystem method and make sure WordPress won’t ask for your FTP login and password again.
Paste the following line in your wp-config.php file. This file is located in the root of your WordPress install.
Please note that the code snippet provided above might not work on all hosting providers, and might even cause security issues if your host is badly configured, so avoid using it if you’re not sure about your hosting.
I use VidaHost on WPRecipes and my other blogs. WP Web Host is also good for smaller websites.
Thanks to WP Tuts+ for the cool tip!