Used By
Used By | Description |
---|---|
wp-includes/functions.php: wp_upload_dir() | Returns an array containing the current upload directory’s path and URL. |
Filters the uploads directory data.
(array) Array of information about the upload directory.
(string) Base directory and subdirectory or full path to upload directory.
(string) Base URL and subdirectory or absolute URL to upload directory.
(string) Subdirectory if uploads use year/month folders option is on.
(string) Path without subdir.
(string) URL path without subdir.
(string|false) False 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
Version | Description |
---|---|
2.0.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/upload_dir