A WordPress plugin as CDN support for Minit by Kaspars Dambis.
Author: LQ2' (Website | GitHub)
- Install Minit and Minit CDN.
- Activate Minit and Minit CDN.
Use the hook minit-cdn-settings
in your theme's functions.php
file. For example:
add_filter( 'minit-cdn-settings', 'my_cdn_settings' );
function my_cdn_settings() {
$cdn_settings = array(
'http://cdn.example.com', // CDN URL (without trailing slashes)
true, // Use CDN over HTTPS?
true // Apply CDN for URLs of Minit files too?
);
return $cdn_settings;
}
Note: All array items must be set (not optional).
Minit itself will combine all remaining CSS/JS files if it can't combine them on its last try. So if this plugin is configured to apply CDN for URLs of Minit files, Minit will think of these files as external files and not combine them.
This plugin is released under GPL.
First release