When you install and running WordPress in your localhost and if you try to install a plugin or theme, WordPress prompts you to enter your FTP credentials (below screen). With a simple code entry, we can skip this step able to install plug-ins teams successfully on your WordPress.

Wordpress FTP Credentials

 

1. Go to your WordPress folder and open wp-config.php in any text editor.
2. At the end of the file, press Enter and in the new line add the below code.

define('FS_METHOD','direct');

Now you can install plugins or themes on your localhost.

 

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *