Use a custom CDN host for displaying theme images and media library content.

Please get in touch before using this as it can break your site.


Name Type Description
of Array args string|array cdn_host_media => Hostname of the CDN for media library assets. string|array cdn_host_static => Optional. Hostname of the CDN for static assets. bool include_admin => Optional. Whether the custom CDN host should be used in the admin context as well. bool disable_ssl => Optional. Whether SSL should be disabled for the custom CDN. bool exclude_preview => Optional. Whether the custom CDN host should be used in the preview context as well.

Return Value


Ready to get started?

Drop us a note.

No matter where you are in the planning process, we’re happy to help, and we’re actual humans here on the other side of the form. 👋 We’re here to discuss your challenges and plans, evaluate your existing resources or a potential partner, or even make some initial recommendations. And, of course, we’re here to help any time you’re in the market for some robust WordPress awesomeness.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.