wp_unique_filename

wp_unique_filename

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('wp_unique_filename') is found 1 times:

  • /wp-includes/functions.php line 2791
    2787
    2788
    2789
    2790
    2791
    2792
    2793
    2794
    2795
    2796
    2797
         * @param string[]      $alt_filenames            Array of alternate file names that were checked for collisions.
         * @param int|string    $number                   The highest number that was used to make the file name unique
         *                                                or an empty string if unused.
         */
        return apply_filters( 'wp_unique_filename', $filename, $ext, $dir, $unique_filename_callback, $alt_filenames, $number );
    }
     
    /**
     * Helper function to test if each of an array of file names could conflict with existing files.
     *
     * @since 5.8.1

See this hook used in plugins: