WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about pre_wp_unique_filename_file_list

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/functions.php apply_filters 2640 /**
* 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.
*
* @since 5.5.0
*
* @param array|null $files The list of files to use for filename comparisons.
* Default null (to retrieve the list from the filesystem).
* @param string $dir The directory for the new file.
* @param string $filename The proposed filename for the new file.
*/

Hook Parameters

Parameter Type Name Description
array|null $files The list of files to use for filename comparisons.
string $dir The directory for the new file.
string $filename The proposed filename for the new file.