PluginSift
PluginsThemesCompare
Directory
  • Plugins
  • Themes
  • Compare Plugins
Plugin Comparisons
  • SEO
  • Security
  • Ecommerce
  • Page Builders
  • Caching
  • Backup
  • Forms
  • Analytics
Resources
  • About
  • Contact
  • llms.txt

© 2026 PluginSift. Data sourced from WordPress.org. · [email protected]

  1. Home
  2. Plugins
  3. File
  4. If File Exists
If File Exists icon

If File Exists

Check if a file exists and return true/false or display a string containing information about the file.

By Scott Reilly·File·Free
5(1 reviews)
·10 active installs·Updated 11 months ago
DownloadVisit HomepageCompare

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.

5/51 reviews
10active installs
12K+total downloads
17 yearssince 2009

Overview

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.

  • If a format string is not passed to it, the functions returns a simple boolean (true or false) indicating if the specified file exists.
  • Otherwise, the format string provided to it will be used to construct a response string, which can be customized to display information about the file (such as directory, extension, name, path, size, or url). If the $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…

Read full description on WordPress.org

Ratings & Reviews

51 reviews
5 ★
1
4 ★
0
3 ★
0
2 ★
0
1 ★
0

Compatibility

WordPress2.7+ requiredTested up to 6.8.5
PHPfalse+ required

Top Alternatives to If File Exists

Theme Editor icon
Theme Editor
4.650K+ installsUpdated 2 weeks ago
ViewCompare
Phoenix Media Rename icon
Phoenix Media Rename
4.750K+ installsUpdated 6 months ago
ViewCompare
Media File Renamer: Rename for better SEO (AI-Powered) icon
Media File Renamer: Rename for better…
4.640K+ installsUpdated 3 weeks ago
ViewCompare
What The File icon
What The File
4.940K+ installsUpdated 1 month ago
ViewCompare
Iptanus File Upload icon
Iptanus File Upload
4.410K+ installsUpdated 3 months ago
ViewCompare
View all file plugins →

Frequently Asked Questions

Changelog

2.4 (2025-04-18)

  • New: Add ‘%file_size%’ and ‘%file_size_bytes%’ as additional substitution tags
  • Change: Escape $format and $show_if_not_exists values prior to display to omit unsafe markup
  • Change: Discontinue unnecessary explicit loading of textdomain
  • Change: Note compatibility through WP 6.8+
  • Change: Note compatibility through PHP 8.3+

…and 3 more changes

View full changelog on WordPress.org

Contributors

Scott ReillyScott Reilly
Plugin Info
Version
2.4
Last Updated
Apr 18, 2025
WP Requires
2.7+
Tested Up To
6.8.5
PHP Requires
false+
Active Installs
10
Downloads
12K+
Added
Jun 12, 2009
Business
Free

Tags

fileexistsexistencefilesystemcoffee2code

Developer

S
Scott Reilly
63 plugins0.1M+ total installs
View all plugins →

Quick Compare

If File Exists vs Theme Editor→If File Exists vs Phoenix Media Rename→If File Exists vs Media File Renamer: Rename for better…→

Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.