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.
Return
array
See wp_upload_dir() for description.
Uses · 1
wp_upload_dir()Returns an array containing the current upload directory's path and URL.
Used by · 10
WP_Debug_Data::get_sizes()Fetches the sizes of the WordPress directories: `wordpress` (ABSPATH), `plugins`, `themes`, and `uploads`.
Signature, return type and hooks compared across 5 parsed releases.
About this page
Parsed data
Generated from the wordpress-develop 6.8.8 tag, from src/wp-includes/functions.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.