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

apply_filters('pre_wp_unique_filename_file_list') is found 1 times:

  • /wp-includes/functions.php line 2667
    			 *                             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 );
    			}