For version control purpose, our client has a WordPress app with directory structure like this:
.
|_____app
| |_____themes
| |_____plugins
| |_____uploads
|_____index.php
|_____WordPress
|_____wp-config.php
In wp-config.php
:
define('WP_CONTENT_DIR', __DIR__ . '/app');
define('WP_CONTENT_URL', WP_HOME . '/app');
Now, she want to rename all default WordPress folders in app directory.
With plugins
and themes
we can do it easily by using WP_PLUGIN_DIR
and register_theme_directory(). But, somehow, it’s not easy to rename uploads
folder.
I have tried many modifications with UPLOADS
constant, but it can’t help because custom uploads folder is always created inside WordPress
directory.
Are there any ways to workaround this problem?