Filter hook 'upload_dir'

in WP Core File wp-includes/functions.php at line 2387

Description

Filters the uploads directory data. }

Occurrences

Filename Line Number
wp-includes/functions.php 2387

Parameters

Type Name Description
array $uploads { Array of information about the upload directory.

PHP Doc

/**
	 * Filters the uploads directory data.
	 *
	 * @since 2.0.0
	 *
	 * @param array $uploads {
	 *     Array of information about the upload directory.
	 *
	 *     @type string       $path    Base directory and subdirectory or full path to upload directory.
	 *     @type string       $url     Base URL and subdirectory or absolute URL to upload directory.
	 *     @type string       $subdir  Subdirectory if uploads use year/month folders option is on.
	 *     @type string       $basedir Path without subdir.
	 *     @type string       $baseurl URL path without subdir.
	 *     @type string|false $error   False or error message.
	 * }
	 */