WordPress at a glance
filter is not described

wp_unique_filename filter-hook . WP 4.5.0

Filters the result when generating a unique file name.

Usage

add_filter( 'wp_unique_filename', 'filter_function_name_3891', 10, 4 );
function filter_function_name_3891( $filename, $ext, $dir, $unique_filename_callback ){
	// filter...

	return $filename;
}
$filename(string)
Unique file name.
$ext(string)
File extension, eg. ".png".
$dir(string)
Directory path.
$unique_filename_callback(callable/null)
Callback function that generates the unique file name.

Changelog

Since 4.5.0 Introduced.

Where the hook is called

wp_unique_filename()
wp_unique_filename
wp-includes/functions.php 2560
return apply_filters( 'wp_unique_filename', $filename, $ext, $dir, $unique_filename_callback );

Where in WP core the hook is used

Usage not found!