Sometimes you come across a problem while installing or updating a plugin in your WP Dashboard, that it asks for FTP info every single time. This can be troublesome when you many plugins for installation. The best solution to fix this is to add those FTP info in the wp-config.php file.
All you need is access to your web hosting company’s File Manager or FTP access in order to view and edit the wp-config.php file. This file is located in the top directory of your account, listed just above the /wp-content directory.
Once you’ve opened or “Edit”ed your wp-config.php file, just add the lines below in grey above the line:
/* That’s all, stop editing! Happy blogging. */
Example FTP connection text for your wp-config.php:*
define('WP_DEBUG', false);
define('FTP_USER', 'example');
define('FTP_PASS', '*******');
define('FTP_HOST', 'example.com:21');
define('FTP_SSL', false);
/* That's all, stop editing! Happy blogging. */
- Be sure to replace the items shown in red with your host’s settings respectively.
More information regarding editing wp-config.php may be found at https://wordpress.org/support/article/editing-wp-config-php/