Fix: WordPress needs FTP credentials for updates and plugins

If your WordPress is asking for FTP credentials to update or install plugins or themes…

Step 1
Open the wp-config.php in notepad or even better in Programmers Notepad.

Step 2
Go down to the bottom of the file and create two new lines.

Step 3
Add the following text:

define('FS_METHOD', 'direct');

Step 4
Save the document and reload the page.