[Wordpress MU] Changing the uploads directory
- by Pedro Reis
Hi,
I've looked everywhere and while there is solutions to change the uploads directory for all the blogs by changing this line in the wp-settings.php:
define( "BLOGUPLOADDIR", WP_CONTENT_DIR . "/blogs.dir/{$wpdb->blogid}/files/" );
I can't find a way of changing the directory for each blog individually, something like:
define( "BLOGUPLOADDIR", WP_CONTENT_DIR . "/blogs.dir/{$blog_name}/files/" );
But I have no idea how could I get the name of the blog from within the wp-settings.php as you can't use get_bloginfo('name'); outside of the template.
Anybody with a solution for this?