I have a problem with a wordpress that I installed recently, it happens that when I want to install something I skip a screen that asks for FTP credentials, which I have never had to put that in any wordpress I installed, I would like to know how I can solve this because I put my FTP data and I get errors such as incorrect user or password or failed connection, I tried one of the options that says wordpress, which no longer appears the screen that asks for FTP credentials but not me lets install nothing tells me error. I use xampp and I'm on localhost.
this is the code I tried:
define('FS_METHOD', 'direct');
and also:
define("FTP_HOST", "localhost");
define("FTP_USER", "yourftpusername");
define("FTP_PASS", "yourftppassword");
Thank you for your contributions.