Tag Info

New answers tagged

2

It was actually easier than I thought. function route_uploads_past_cdn( $url, $path ) { $upload_paths = array( 'async-upload.php', 'media-new.php' ); if( !in_array( $path, $upload_paths ) ) { return $url; } return str_replace('www.', '', $url); } add_filter( 'admin_url', 'pew_route_uploads_past_cdn', 10, 2 ); The URL for ...


0

I'm not quite sure what do you mean. You can change from where the WP loads the files if that's what you mean? add_filter( 'pre_option_upload_url_path', function() { return 'http://yoursite.com/wp-content/uploads'; } ); That's what I use to develop on a local server with all the "real stuff/uploads" being in the live servers anyway. edit: so no, this ...



Top 50 recent answers are included