Update WordPress plugin without using FTP

When update the Plugins, wordpress return the following error, you can use the following method to bypass the FTP login and update the plugins via directly connect to the folder.

error:
“Could not create directory”

  1. Edit /wp-config.php file
  2. Insert FS_METHOD at the end of the page
    
    /** Sets up 'direct' methods for wordpress, auto update without FTP */
    define('FS_METHOD','direct');
    

Search result