PageForge 1.3: Verifique todas as corridas antes de escrever, atualize as páginas geradas, SpinTax e lotes reumáveis. Veja o que mudou
If File Exists icon
Desacelerando Testado até 6.8.13 #13 in coffee2code

If File Exists

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…

Instalações ativas30+10+ nível
Downloads · 30d320▲ +55.3% vs prev. 30d
Classificação5/51 comentários
Pontuação da saúde40/100Em risco
Downloads de todos os tempos13.9KSince Jun 2009
Suporte resolvido—Sem tópicos recentes
RequerWP 2.7Php qualquer
Downloads · 7d60▲ +3,4% semana a semana
Nosso veredicto

Considere uma alternativa

If File Exists shows warning signs in 2026 — compare the alternatives below before installing. It runs on 30+ sites, is rated 5/5 and was last updated 2 years ago, and scores 40/100 on our health check.

  • Base de usuários pequenas (mais de 30 instalações ativas)
  • Muito poucos comentários até agora
  • Nenhuma atualização em mais de um ano
  • Testado apenas até WordPress 6.8 (mais recente é 7.1)

Como ele se acumula?

Lado a lado em instalações, atualizações, avaliações e suporte

Downloads diários

81725Aug 25Oct 8Nov 22
Ontem5
Média diária (1y)5
Dia de pico34Nov 7, 2026
Últimos 12 meses2K

Os picos de download geralmente seguem uma nova versão — cada site que atualiza automaticamente é um download.

Rankings

Where If File Exists stands today

WordPress.org Classificações de pesquisa

Posição ao vivo na pesquisa de plugins, top 100
Palavra chavePosiçãoPlugins concorrentesCategoria
coffee2code #11 65 Best coffee2code plugins →
existence #22 405 Best existence plugins →
exists #15 6,632 Best exists plugins →
file >100 10,000 Best file plugins →
filesystem #44 934 Best filesystem plugins →

Adoção da versão

Compartilhamento de sites ativos por lançamento.

  • 2.257.6%
  • 2.442.4%

Divisão de classificação

★★★★★ ★★★★★ 5 de 1 comentários

  • 5★100.0%
  • 4★0.00%
  • 3★0.00%
  • 2★0.00%
  • 1★0.00%

About If File Exists

From the official readme · v2.4

Descrição

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 relative to the default WordPress upload directory. If you wish to search another directory, specify it as the $dir argument. c2c_if_theme_file_exists() assumes you are looking for a file relative to the currently active theme’s home directory. c2c_if_plugin_file_exists() assumes you are looking for a file relative to the directory that contains WordPress plugins.

Links: Plugin Homepage | Plugin Directory Page | GitHub | Author Homepage

Developer Documentation

Developer documentation can be found in DEVELOPER-DOCS.md. That documentation covers the template tags and hooks provided by the plugin.

As an overview, these are the template tags provided by the plugin:

  • c2c_if_file_exists() : Checks if a file exists and returns true/false or displays a string containing information about the file.
  • c2c_if_plugin_file_exists() : Checks if a file exists (relative to the plugins directory) and returns true/false or displays a string containing information about the file.
  • c2c_if_theme_file_exists() : Checks if a file exists (relative to the current theme’s directory) and returns true/false or displays a string containing information about the file. If the current theme is a child theme, then the function will check if the file exists first in the child theme’s directory, and if not there, then it will check the parent theme’s directory.

These are the hooks provided by the plugin:

  • c2c_if_file_exists : Filter that allows use of an alternative approach to safely invoke c2c_if_file_exists() in such a way that if the plugin were deactivated or deleted, then your calls to the function won’t cause errors in your site.
  • c2c_if_plugin_file_exists : Filter that allows use of an alternative approach to safely invoke c2c_if_plugin_file_exists() in such a way that if the plugin were deactivated or deleted, then your calls to the function won’t cause errors in your site.
  • c2c_if_theme_file_exists : Filter that allows use of an alternative approach to safely invoke c2c_if_theme_file_exists() in such a way that if the plugin were deactivated or deleted, then your calls to the function won’t cause errors in your site.

Instalação

  1. Install via the built-in WordPress plugin installer. Or install the plugin code inside the plugins directory for your site (typically /wp-content/plugins/).
  2. Activate the plugin through the ‘Plugins’ admin menu in WordPress
  3. In one or more of your templates, utilize one of the template tags provided by this plugin (see examples)

Log de Changes

Minor update: added '%file_size%' and '%file_size_bytes%' substitution tags, escaped output before display to prevent unsafe markup, noted compatibility through WP 6.8+ and PHP 8.3+, and updated copyright date (2025)

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+
  • Change: Update copyright date (2025)
  • Unit tests:
    • Change: Change test class name to match plugin name

2.3.2 (2024-08-02)

  • Change: Note compatibility through WP 6.6+
  • Change: Update copyright date (2024)
  • New: Add .gitignore file
  • Change: Remove development and testing-related files from release packaging
  • Unit tests:
    • Hardening: Prevent direct web access to bootstrap.php
    • Allow tests to run against current versions of WordPress
    • New: Add composer.json for PHPUnit Polyfill dependency
    • Change: In bootstrap, store path to plugin directory in a constant

2.3.1 (2023-05-18)

  • Change: Note compatibility through WP 6.3+
  • Change: Update copyright date (2023)
  • New: Add a potential TODO item

Full changelog is available in CHANGELOG.md.

Registro de change completo em WordPress.org →

Para desenvolvedores

Este é o seu plugin? Mostre os números.

Adicione um crachá ao vivo ao seu site, Documentos ou Readme do GitHub. Ele é atualizado por conta própria - nenhuma conta necessária.

Selo de Instalações Ativas Selo de classificação Distintivo de pontuação de saúde

Best If File Exists alternatives

All coffee2code plugins →
Alternativas
Classificação Plugin Instalações ativas Classificação Atualizada Saúde
1 Desative a pesquisa Desative a pesquisa Desative os recursos de pesquisa front-end integrados de WordPress. Por Scott Reilly 30K+ ★★★★★★★★★★ 4.7 (16) 2 anos atrás 51
2 Configure SMTP Configure SMTP Configure SMTP mailing in WordPress, including support for sending email via SSL/TLS (such… Por Scott Reilly 6K+ ★★★★★★★★★★ 4.9 (45) 2 anos atrás 46
3 Um clique Fechar Comentários Um clique Fechar Comentários Feche ou abra os comentários convenientemente para uma postagem ou página com um clique do administrador… Por Scott Reilly 5K+ ★★★★★★★★★★ 4.9 (10) 2 anos atrás 50
4 Text Replace Text Replace Replace text with other text. Handy for creating shortcuts to common, lengthy, or… Por Scott Reilly 3K+ ★★★★★★★★★★ 4.4 (18) 5 anos atrás 38
5 Duplicate Widget Duplicate Widget A widget that can act as a duplicate of another widget (for synchronized use in another… Por Scott Reilly 1K+ ★★★★★★★★★★ 4.3 (12) 9 anos atrás 36
6 Force Admin Color Scheme Force Admin Color Scheme Force a single admin color scheme for all users of the site. Por Scott Reilly 500+ ★★★★★★★★★★ 5 (2) 2 anos atrás 43
7 Single Category Permalink Single Category Permalink Reduce permalinks (category or post) that include entire hierarchy of categories to just… Por Scott Reilly 400+ ★★★★★★★★★★ 5 (5) 5 anos atrás 39
8 Hide Broken Shortcodes Hide Broken Shortcodes Prevent broken shortcodes from appearing in posts and pages. Por Scott Reilly 400+ ★★★★★★★★★★ 4.5 (10) 7 meses atrás 52
9 Years Ago Today Years Ago Today Lists posts published to your site on this day in previous years via admin dashboard… Por Scott Reilly 100+ ★★★★★★★★★★ 5 (6) 6 meses atrás 65
10 Disable Directory Listings Disable Directory Listings Prevent virtual directory listing services from listing the contents of directories, and/or… Por Scott Reilly 90+ ★★★★★★★★★★ 5 (1) 15 anos atrás 32

FAQ

If File Exists: quick answers

Respostas diretas, extraídas de dados ao vivo WordPress.org.

Fonte: WordPress.org

Is If File Exists free?

Yes. If File Exists is free to download and use from the official WordPress.org plugin directory.

Is If File Exists safe to use in 2026?

If File Exists shows warning signs in 2026 — compare the alternatives below before installing. It runs on 30+ sites, is rated 5/5 and was last updated 2 years ago, and scores 40/100 on our health check.

How many websites use If File Exists?

If File Exists is active on 30+ WordPress websites and has been downloaded 13,914 times since it launched in June 2009. It was downloaded 320 times in the last 30 days.

Does If File Exists work with WordPress 7.1?

If File Exists is officially tested up to WordPress 6.8.13, while the latest release is 7.1.5. It may still work, but try it on a staging site first.

When was If File Exists last updated?

The latest version, 2.4, was released on April 18, 2025 (2 years ago).

Who makes If File Exists?

If File Exists is developed and maintained by Scott Reilly.

What are the best alternatives to If File Exists?

The most popular alternatives to If File Exists are Disable Search (30K+ installs), Configure SMTP (6K+ installs) and One Click Close Comments (5K+ installs).

Alimentado por PageForge

Um modelo e uma planilha. Uma página real para cada pesquisa.

PageForge Transforma cada linha de um CSV em uma página WordPress com seu próprio título, URL, SEO campos e esquema, construído no layout que você já desenhou. Gratuito em WordPress.org.

  • CSV e XLSX, mais Google Sheets em Profissional e Empresarial
  • Seu próprio título, URL, SEO campos e esquema para cada página
  • Funciona com o editor de blocos, Elementor, Divi e Avada
  • Gratuito em WordPress.org, sem cartão de crédito

↑↓ mover↵ abrir