>
Download This Plugin | |
Download Elegant Themes | |
Name | If File Exists |
Version | 2.2.2 |
Author | Scott Reilly |
Rating | 0 |
Last updated | 2015-02-13 08:37:00 |
Downloads |
1659
|
Download Plugins Speed Test plugin for Wordpress |
Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%
If File Exists plugin added 17 bytes of resources to the Home page and 7 bytes of resources to the sample Post page.
If File Exists plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.
Great! If File Exists plugin ads no tables to your Wordpress blog database.This plugin provides the function c2c_if_file_exists()
(and a couple others) that check if a file exists and either returns true/false or displays a string containing information about the file.
If a format string is not passed to it, the functions return 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 file_name, file_url, or file_path). 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 | Author Homepage