Check if a file exists and return true/false or display a string containing information about the file.
As of April 2026, If File Exists is a WordPress file plugin with 10 active installations and a 5/5 rating from 1 reviews. It has been downloaded 12K+ times in total. Requires WordPress 2.7+ and PHP false+. Available on WordPress.org since 2009. Top alternative: Theme Editor.
This plugin provides the functions c2c_if_file_exists(), c2c_if_theme_file_exists(), c2c_if_plugin_file_exists() that check if a file exists and either return true/false or display a string containing information about the file.
$echo argument is true, that string is displayed on the page. Regardless of the value of $echo, the response string is returned by the function.By default, c2c_if_file_exists() assumes you are looking for the file r…
| WordPress | 2.7+ requiredTested up to 6.8.5 |
| PHP | false+ required |
$format and $show_if_not_exists values prior to display to omit unsafe markup…and 3 more changes
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.