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.


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

	return $filename;
Unique file name.
File extension, eg. ".png".
Directory path.
Callback function that generates the unique file name.

Where the hook is called

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

Where the hook is used (in WP core)

Использование не найдено.