2

On a default wordpress install, the media library is located at: /wp-admin/upload.php. I am trying to update the image URL to point to my CDN, not my local server.

This filter

add_filter('admin_post_thumbnail_html', 'my-function', 1000, 5);

will update the featured image URLs in the admin, but not the images in the media library list table. Is there a filter or action I am missing?

  • The easiest solution I can think of would be to use the W3 Total Cache plugin. It has an excellent implementation of CDNs... I hope that helps! – WPMU-DEV Ari Apr 25 '13 at 13:56
  • 1
    I second what @WPMU-DEVAri said. Use W3 Total Cache and set up a CDN. That way you're not hard-coding changes to your site's structure that, if you ever decide to change them, will mean lots of changes and extra work. Just let the plugin handle that for you. – Christiaan May 31 '13 at 14:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.