How to stop WordPress asking for ftp details

You can install plugin and theme easily from wordpress backend. But sometime due to folder permission WordPress may ask ftp details to install plugins in site. You can prevent asking ftp details just open wp-config.php file from the root folder of wordpress installation then write following php code define(‘FS_METHOD’, ‘direct’); save the file to apply … More How to stop WordPress asking for ftp details