_wp_check_alternate_file_names
- %1$s is private and should not be used in themes or plugins directly.
_wp_check_alternate_file_names ( $filenames, $dir, $files )
Access:Parameters:- (string[]) filenames Array of file names to check.
- (string) dir The directory containing the files.
- (array) files An array of existing files in the directory. May be empty.
Returns:- (bool) True if the tested file name could match an existing file, false otherwise.
Defined at: - Introduced in WordPress: 5.8.1
- Deprecated in WordPress: —
Description
Helper function to test if each of an array of file names could conflict with existing files.