Disable FTP Credentials in WordPress
Fix WordPress FTP login issue in seconds.
Before you start
Step-by-step
define('FS_METHOD', 'direct');
Add this line inside wp-config.php before "That's all, stop editing!" line.
Common issues
Check file permissions and ownership.
Web server must have write access.
Make sure you edited the correct wp-config.php file.
About this guide
This guide shows how to stop WordPress from asking for FTP credentials when installing plugins, themes, or updates.
How to follow this guide
- Open wp-config.php file.
- Add FS_METHOD direct setting.
- Save the file and test plugin installation.
Why use this method?
WordPress asks for FTP credentials when it cannot write files directly. Setting FS_METHOD to direct allows file operations without FTP login.
Frequently Asked Questions
Why does WordPress ask for FTP credentials?
It happens when file permissions are not correctly set.
Is FS_METHOD direct safe?
Yes, if your server permissions are properly configured.
Do I still need FTP after this?
No, WordPress will handle file operations directly.
What if it still asks for FTP?
Check file ownership and permissions on your server.