Update WordPress Automatically

Don’t you wish you could Update WordPress Automatically?

Sometimes you are not able to update WordPress and the plugins to a newer version without providing your FTP credentials. This is a caused by the WordPress system not haveing permission on the server to write to the wp-content folder.

FTP

To solve this issue you either define the FTP details in your wp-config.php file so WordPress will remember it or, alternatively, provide WordPress with write access to your wp-content folder by accessing the FTP root file and changing the folder file permission (CHMOD) to 775 rather than the default 755 and 644.

There is an easier way to deal with this; by defining constant,FS_METHOD in your wp-config.php file. This bypasses WordPress’s recurring prompts, and allows auto-updates of your files to happen. And it takes only 1 line of code to do this.

1. Open /wp-config.php

Now the first thing you need to do is to open the wp-config.php file from your WordPress root folder (you may access this file from your WordPress installer folder). From the installation folder, the file is located atwordpress/wp-config.php

2. Insert FS_METHOD

Paste the following code to your wp-config.php file, preferably just below every other line of code.

define('FS_METHOD','direct');

FS Method