In the terminal we type the following command to edit the file wp-config.php: sudo io.elementary.code /opt/lampp/htdocs/wordpress/wp-config.php
Now we add the line:
define(‘FS_METHOD’, ‘direct’);
So it shows like this/** The Database Collate type. Don’t change this if in doubt. */
define( ‘DB_COLLATE’, ” );
/** Para que no haga las actualizaciones por FTP. */
define(‘FS_METHOD’, ‘direct’);
/**#@+
We save the file and from this moment the WordPress update will be direct, without FTP.