Filters the file list used for calculating a unique filename for a newly added file.
Returning an array from the filter will effectively short-circuit retrieval from the filesystem and return the passed value instead.
$filesarray|null
$dirstring
$filenamestring
$files = apply_filters( 'pre_wp_unique_filename_file_list', null, $dir, $filename );
| Version | Description |
|---|---|
| 5.5.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/pre_wp_unique_filename_file_list