wordpress media settings full url path to files removed

As per changes of wordpress 3.5 “Full url path to files” which is media library setting is removed from wrodpress settings. If people want to set easily the upload path or subdomain for uploaded images they are not able set it very easily.

wordpress media settings full url path to files removed

wordpress media settings full url path to files removed

wordpress media settings full url path to files removed

If you want to set the subdomain for images in wordpress 3.5 then use following filter code in your functions.php file.


add_filter( 'pre_option_upload_url_path', 'subdomain_upload_url' );

function subdomain_upload_url()
{
 return 'http://subdomain.wpapi.com/uploads';
}

For more information you can see following URL

http://codex.wordpress.org/Editing_wp-config.php#Moving_uploads_folder

If still you want old settings then you can use following wordpress plugin:

WP Original Media Path

The new version of WordPress 3.5 has changed the media page, removing the two fields to define the location and the sub-field of media. There exists a constant wp-config.php, but it does not include sub-domains. This plug-in is designed for installations virgin WordPress. Once activated, the plugin will add two values ​​in the database, you modify later.

Hope your problem will be solved.

One Comment

Add a Comment

Your email address will not be published. Required fields are marked *