How to prevent WordPress from asking FTP credentials

Paste the following line in your wp-config.php file. This file is located in the root of your WordPress install.

define('FS_METHOD', 'direct');

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!

Leave a Reply

Your email address will not be published. Required fields are marked *