WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
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
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 posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.