How to Resolve “WordPress Asking for FTP Credentials” Error?

Add the following code in your wp-config.php file.

define(‘FS_METHOD’,’direct’);