WPDev.one
Core Function
View Source on Trac ↗

_wp_check_alternate_file_names()

_wp_check_alternate_file_names( mixed $filenames, mixed $dir, mixed $files )

Helper function to test if each of an array of file names could conflict with existing files.

Parameters 3 required

Name / Type Description
$filenames
string[]

Array of file names to check.

Required
$dir
string

The directory containing the files.

Required
$files
array

An array of existing files in the directory. May be empty.

Required

Return Value

(bool)
True if the tested file name could match an existing file, false otherwise.

Function Information

Since Version
5.8.1
Source File
wp-includes/functions.php
Advertisement