How to Update WordPress Automatically Without Using FTP

Auto-Install Applications > Wordpress
In some cases, you are not able to update/upgrade your WordPress and plugins to a newer version without providing your FTP connection information. This is a common issue whereby the WordPress system can’t write to your /wp-content folder directly.
Simply follow below steps to solve it.
 
?
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.
 
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');
/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');
/** Sets up 'direct' method for wordpress, auto update without ftp */
define('FS_METHOD','direct');
 
3. Save and upload

When you have already pasted the one-line code, you can proceed to upload the file to your WordPress root folder on your server, and it should work right away. Uploading can be done directly from your host control panel.
Sets up 'direct' method for wordpress, auto update without ftp