pre_wp_unique_filename_file_list

pre_wp_unique_filename_file_list

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('pre_wp_unique_filename_file_list') is found 1 times:

  • /wp-includes/functions.php line 2667
    2663
    2664
    2665
    2666
    2667
    2668
    2669
    2670
    2671
    2672
    *                             Default null (to retrieve the list from the filesystem).
     * @param string     $dir      The directory for the new file.
     * @param string     $filename The proposed filename for the new file.
     */
    $files = apply_filters( 'pre_wp_unique_filename_file_list', null, $dir, $filename );
     
    if ( null === $files ) {
        // List of all files and directories contained in $dir.
        $files = @scandir( $dir );
    }