Getting the URL of a file without getting the CDN URL

Usually having the CDN being returned as the location of files is advantageous. The files are closer to the end user.
There are some instances such as CORS and other cross domain reasons that would make you not want the cdn domain.
Using the function wpcom_vip_noncdn_uri Will give you the URL you are looking for.

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.