Used By
Used By | Description |
---|---|
wp-includes/functions.php: wp_unique_filename() | Get a filename that is sanitized and unique for the given directory. |
Filters the result when generating a unique file name.
(string) Unique file name.
(string) File extension, eg. ".png".
(string) Directory path.
(callable|null) Callback function that generates the unique file name.
Version | Description |
---|---|
4.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_unique_filename