wp_get_upload_dir() – Retrieves uploads directory information.

You appear to be a bot. Output may be restricted

Description

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.

Usage

$array = wp_get_upload_dir();

Parameters

Returns

array See wp_upload_dir() for description.

Source

File name: wordpress/wp-includes/functions.php
Lines:

1 to 3 of 3
function wp_get_upload_dir() {
  return wp_upload_dir( null, false );
}
 

 View on GitHub View on Trac