apply_filters( 'wp_unique_filename', string $filename , string $ext , string $dir , callable|null $unique_filename_callback )
Filters the result when generating a unique file name.
Parameters
- $filename
-
Unique file name.
- $ext
-
File extension, eg. ".png".
- $dir
-
Directory path.
- $unique_filename_callback
-
Callback function that generates the unique file name.
Source
Changelog
Version | Description |
---|---|
WP-4.5.0 | Introduced. |