web-dev-qa-db-fra.com

WP Config pour les informations d'identification FTP

Existe-t-il une configuration dans WP qui vous permet de stocker vos informations d'identification FTP? J'utilise le serveur Web Linux au travail pour développer et c'est vraiment ennuyant de devoir utiliser les informations d'identification chaque fois que j'ajoute/supprime un plugin/thème L'accès anonyme est un non-non, alors j'espère que cette configuration existe ...

Merci.

3
David Gard
define('FS_METHOD', 'ftpext');
define('FTP_BASE', '/path/to/wordpress/');
define('FTP_CONTENT_DIR', '/path/to/wordpress/wp-content/');
define('FTP_PLUGIN_DIR ', '/path/to/wordpress/wp-content/plugins/');
define('FTP_PUBKEY', '/home/username/.ssh/id_rsa.pub');
define('FTP_PRIKEY', '/home/username/.ssh/id_rsa');
define('FTP_USER', 'username');
define('FTP_PASS', 'password');
define('FTP_Host', 'ftp.example.org');
define('FTP_SSL', false);

http://digwp.com/2010/11/ftp-in-wpconfig/

4
Tom J Nowell