Monday, February 25, 2019

How to disable the requirement of putting ftp credentials in wordpress 5.1 theme or plugin upload or installation

In the new wordpress version 5.1, when you try to install a new theme or plugins from your pc or just browsing from the suggestion or while using and testing the wordpress installation on localhost you might get a form asking for ftp access and some of you might find it annoying and some of you might be scared.
No worries, just put the following line at the end of your wp-config.php file and you are done. No more irritating feel.
define('FS_METHOD','direct');