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

apply_filters('wp_unique_filename') is found 1 times:

  • /wp-includes/functions.php line 2791
    	 * @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: