Skip to content

Instantly share code, notes, and snippets.

@WebVooruit
Created September 20, 2018 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WebVooruit/688f7306be5a8a978713727288b04aca to your computer and use it in GitHub Desktop.
Save WebVooruit/688f7306be5a8a978713727288b04aca to your computer and use it in GitHub Desktop.
FTP setup in WP Config
<?php
define('FS_METHOD', 'ftpext'); // tells WordPress to use FTP to upload/update plugins and theme's.
define('WP_TEMP_DIR', ABSPATH . 'wp-content/');
define( 'FTP_BASE', '/' );
define( 'FTP_CONTENT_DIR', '/wp-content/' );
define( 'FTP_PLUGIN_DIR ', '/wp-content/plugins/' );
define('FTP_USER', 'username');
define('FTP_PASS', 'password');
define('FTP_HOST', 'www.domain.com');
define('FTP_SSL', false);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment