apply_filters( 'upload_dir', array $uploads )

Filters the uploads directory data.


Parameters

$uploads

Array of information about the upload directory.<br>

  • 'path'
    (string) Base directory and subdirectory or full path to upload directory.<br>
  • 'url'
    (string) Base URL and subdirectory or absolute URL to upload directory.<br>
  • 'subdir'
    (string) Subdirectory if uploads use year/month folders option is on.<br>
  • 'basedir'
    (string) Path without subdir.<br>
  • 'baseurl'
    (string) URL path without subdir.<br>
  • 'error'
    (string|false) False or error message.<br>


Source

File: wp-includes/functions.php

View on GitHub



Changelog

Changelog
Version Description
2.0.0 Introduced.