array $uploads )
Filters the uploads directory data.
Array of information about the upload directory.
pathstringBase directory and subdirectory or full path to upload directory.
urlstringBase URL and subdirectory or absolute URL to upload directory.
subdirstringSubdirectory if uploads use year/month folders option is on.
basedirstringPath without subdir.
baseurlstringURL path without subdir.
errorstring|falseFalse or error message.
This hook allows you to change the directory where files are uploaded to. The keys and values in the array are used by the wp_upload_dir() function in wordpress core, which is doing the work
View all references
$uploads = apply_filters( 'upload_dir', $cache[ $key ] );