wp_get_upload_dir() WP 1.0
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.
Works based on: wp_upload_dir()
1 time = 0.000125s = fast | 50000 times = 0.18s = very fast | PHP 7.0.5, WP 4.5
No Hooks.
Return
Array. See wp_upload_dir() for description.
Usage
wp_get_upload_dir();
Notes
- See: wp_upload_dir()
Changelog
Since 4.5.0 | Introduced. |
Code of wp_get_upload_dir() wp get upload dir WP 5.6
function wp_get_upload_dir() {
return wp_upload_dir( null, false );
}Related Functions
From tag: upload download (file system)
More from tag: path (directory folder)
More from tag: Link (URL)
- admin_url()
- attachment_url_to_postid()
- build_query()
- comment_link()
- content_url()
- get_comments_link()
- get_comments_pagenum_link()
- get_edit_post_link()
- get_edit_term_link()
- get_home_url()
- get_next_comments_link()
- get_post_embed_url()