WordPress Renaming Themes Folder
This is usefull if you want to keep plugins and uploads in ex. separate server for CDN purpose (NFS) and remove public/www permission. In this case you only deploying themes instead of plugins, uploads etc.
define('WP_CONTENT_DIR', __DIR__ . '/data/wp-content');define('WP_CONTENT_URL', 'http://{your-url/to-blog}/wp-content');define('WP_PLUGIN_DIR', __DIR__ . '/data/wp-content/plugins');define('WP_PLUGIN_URL', 'http://{your-url/to-blog}/wp-content/plugins');$wp_theme_directories = array(__DIR__ . '{/directory-to-themes}');define('WP_DEFAULT_THEME', '{your-default-theme}');
Remember: 1. Order of lines in wp-config is important2. Keep themes folder in wp-content (even if it will be empty)