Warning: Array to string conversion in /var/www/public/docs.classicpress.net/public_html/wp-content/themes/cpnet-developer/inc/template-tags.php on line 789

Warning: foreach() argument must be of type array|object, string given in /var/www/public/docs.classicpress.net/public_html/wp-content/themes/cpnet-developer/inc/template-tags.php on line 794
apply_filters( 'upload_dir', array $uploads )

Filters the uploads directory data.


Warning: Array to string conversion in /var/www/public/docs.classicpress.net/public_html/wp-content/themes/cpnet-developer/inc/template-tags.php on line 789

Warning: foreach() argument must be of type array|object, string given in /var/www/public/docs.classicpress.net/public_html/wp-content/themes/cpnet-developer/inc/template-tags.php on line 794

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.