WPDev.one
Core Function
View Source on Trac ↗

_wp_check_existing_file_names()

_wp_check_existing_file_names( mixed $filename, mixed $files )

Helper function to check if a file name could match an existing image sub-size file name.

Parameters 2 required

Name / Type Description
$filename
string

The file name to check.

Required
$files
array

An array of existing files in the directory.

Required

Return Value

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

Function Information

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