WordPress FTP Data With Constant

Since version 2.5 it’s possible to update your Plugins automatically. It’s necessary to input your FTP information before you update your Plugin.

It is very popular and an easy process, but I like to upload the newest version via my FTP client. How sure is the use of your FTP login information in your WordPress Admin? If you like to use another way, you can just put a definition of constants in your wp-config.php.

define('FTP_HOST', 'ftp://example.de/');
define('FTP_USER', 'example_username');
define('FTP_PASS', 'example_passwort');
define('FTP_SSL', false); //TRUE for SLL-connection

Otherwise you will have the data after the first use in table options, in field ftp_credentials. If you don’t want to use them, you can delete them directly. That’s possible either via mySQL-Tool, like phpMyAdmin, or in WordPress, if you open the preferences in table options, just use the admin address of your blog and add options.php (Bsp.: http://example.com/wp-admin/options.php).





3 responses to “WordPress FTP Data With Constant”

  1. Markus Avatar

    One of the best tipps I read in the last weeks. Thanks!

  2. Alex Avatar

    Glad you liked it Markus 🙂

  3. Angel Kafazov Avatar

    Great advice, thank you!