apply_filters( 'upload_dir', array $uploads )

Filters the uploads directory data.


Description Description


Parameters Parameters

$uploads

(array) Array of information about the upload directory.

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


Top ↑

Source Source

File: wp-includes/functions.php

View on Trac


Top ↑

Changelog Changelog

Changelog
Version Description
2.0.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.