Add new Plugin requests for FTP info in localhost

Sep 4, 2012 | Blog | , ,

I faced a issue recently when i tried to install a plugin using plugin installer. It was asking for ftp details which sucks!. So i tried options like changing file permissions etc, but nothing helped. With a quick research in google i found the option

define('FS_METHOD','direct');

which should be added in wp-config.php. This line of code disables the FTP window and allows the normal flow of adding plugins.