[wp-hackers] easy way to change upload directory
Dion Hulse (dd32)
wordpress at dd32.id.au
Sun Oct 14 05:53:20 UTC 2012
Using the define is supported and probably the best way If you want it
hard coded. The filter will also work fine.
I'm not sure, but you might also have the upload_path and
upload_url_path via wp-admin/options.php, but I'd avoid that route, as
the constant will work right for the job.
See http://core.trac.wordpress.org/ticket/21720 for where it was removed.
On 14 October 2012 14:44, Chris McCoy <chris at lod.com> wrote:
> I noticed with wp 3.5 it doesn't allow you to pick your upload directory
> anymore if you want something out of the wp-content/uploads
> What would be the best way to set this, I came across an undefined constant
> UPLOADS which seems to work, also the upload_dir filter.
> Difference between the two is one is just a constant other I would need a
> plugin or code added to functions.php
> These the only two ways?
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers