Skip to content

Instantly share code, notes, and snippets.

@phpmypython
Created July 11, 2017 16:36
Update image paths wordpress
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