Created
July 11, 2017 16:36
-
-
Save phpmypython/b57d102814eb09ca1dc0251b8ceb1c3a to your computer and use it in GitHub Desktop.
Update image paths wordpress
This file contains 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