Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Limit file extensions to load from CDN when using Stage WP CDN plugin.
<?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