cannot update wordpress in dashboard asking for ftp credentials code example
Example 1: wordpress asking for ftp credentials
define('FS_METHOD','direct');
Example 2: wordpress asking for ftp credentials
chmod 777 /yourwebsitename/public/wp-content/plugins/