As the recent changes in WordPress 3.5 removed the “full URL path to files” option from media library I am wondering how to set this option to a custom path now?
I need to set my “full URL path to files” for my media files to a custom subdomain. Can you guys help me out with finding a solution for this problem?
Regards,
faxxim
The option name is
upload_url_path
, and you can still filter it:Thank you @Toscho for providing me with the name of the option. Here’s another way to change it, by placing this in your functions.php file:
This will make WordPress embed images like
src="/wp-content/uploads/file.jpg"
instead ofsrc="http://domain.com/wp-content/uploads/file.jpg"