There is only one short line of code needed to set the filesystem method for your WordPress site.
This line of code has to be added to wp-config.php file of your WordPress install. First search the wp-config.php file for “FS_METHOD” in case that it’s already defined. If that’s the case, then just change the value to “direct”. Otherwise add this line:
define('FS_METHOD', 'direct');
above this comment in the wp-config.php file:
/* That's all, stop editing! Happy blogging. */
So the code in wp-config.php will look like this :
define('FS_METHOD', 'direct');
/* That's all, stop editing! Happy blogging. */
That’s it 🙂