Uses
Uses | Description |
---|---|
wp-includes/functions.php: wp_upload_dir() | Returns an array containing the current upload directory’s path and URL. |
Retrieves uploads directory information.
Same as wp_upload_dir() but "light weight" as it doesn’t attempt to create the uploads directory. Intended for use in themes, when only ‘basedir’ and ‘baseurl’ are needed, generally in all cases when not uploading files.
(array) See wp_upload_dir() for description.
File: wp-includes/functions.php
function wp_get_upload_dir() { return wp_upload_dir( null, false ); }
Version | Description |
---|---|
4.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_get_upload_dir