I host quite a few blogs on my network (WordPress Multisite) and have their static content served via a common CDN, by simply setting the wp-content directory URL in wp-config.php like so:
# http://codex.wordpress.org/Editing_wp-config.php#Moving_wp-content_folder define( 'WP_CONTENT_URL', 'http://abcdefghijk.cloudfront.net/wp-content' );
Now all static content (images, css, js, etc.) in wp-content directory, for all sites, is served via the common CDN.
The problem is, I need to use a different CDN/URL for wp-content directory for some sub-sites in the network.
So, the question is:
Is it possible to set different
WP_CONTENT_URLvalues for different sub-sites in wp-config.php?
If (1) isn't possible, is it possible to define
WP_CONTENT_URLin functions.php instead? If yes, then is it possible to set different
WP_CONTENT_URLvalues for different sub-sites in functions.php?