Sometimes WordPress may ask for FTP access when you try to update Theme or Plugin. We have a very simple way to avoid this.


define('FS_METHOD', 'direct');

USE THIS CODE IN config.php file. Making it more clear …



/**
 * For developers: WordPress debugging mode.
 *
 * Change this to true to enable the display of notices during development.
 * It is strongly recommended that plugin and theme developers use WP_DEBUG
 * in their development environments.

 */

define('WP_DEBUG', false);

define('FS_METHOD', 'direct');

/* That's all, stop editing! Happy blogging. */