Created
April 7, 2014 19:57
-
-
Save andrezrv/10040795 to your computer and use it in GitHub Desktop.
Limit file extensions to load from CDN when using Stage WP CDN plugin.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Limit file extensions to load from CDN. | |
*/ | |
function override_cdn_file_extensions() { | |
return array( 'jpe?g', 'gif', 'png', 'bmp' ); | |
} | |
add_filter( 'stage_wp_cdn_extensions', 'override_cdn_file_extensions' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment