Home wp-config
Post
Cancel

wp-config

Editing wp-config.php

WP_CONTENT_DIR

1
2
define( 'WP_CONTENT_DIR', dirname(__FILE__) . '/blog/wp-content' );
define( 'WP_CONTENT_URL', 'http://example/blog/wp-content' );

WP_PLUGIN_DIR

1
2
define( 'WP_PLUGIN_DIR', dirname(__FILE__) . '/blog/wp-content/plugins' );
define( 'WP_PLUGIN_URL', 'http://example/blog/wp-content/plugins' );

THEME

1
$theme_root = WP_CONTENT_DIR . '/themes'; 

UPLOADS>

1
define( 'UPLOADS', 'blog/wp-content/uploads' );

AUTOSAVE_INTERVAL

1
define( 'AUTOSAVE_INTERVAL', 160 ); // Seconds

FTP

1
2
3
4
5
6
7
8
9
10
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 );
This post is licensed under CC BY 4.0 by the author.