Created
July 11, 2017 16:36
Update image paths wordpress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function update_content_url() | |
{ | |
//provide the url and path that you would like used for image uploads. | |
return 'http://example.com/wp-content/uploads'; | |
} | |
add_filter('pre_option_upload_url_path', 'update_content_url'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment