Linux 软件免费装
Banner图

If File Exists

开发者 coffee2code
更新时间 2023年8月22日 02:56
捐献地址: 去捐款
PHP版本: 2.7 及以上
WordPress版本: 6.3
版权: GPLv2 or later
版权网址: 版权信息

标签

file coffee2code filesystem existence exists

下载

2.3 2.2.10 2.3.2 1.0.1 2.1.2 1.0.3 2.0 2.1 2.1.1 2.1.3 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.2.8 2.2.9 2.3.1

详情介绍:

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. 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

安装:

  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)

升级注意事项:

2.3.1 Trivial update: noted compatibility through WP 6.3+ and updated copyright date (2023) 2.3 Minor update: removed support for long-deprecated if_file_exists(), added DEVELOPER-DOCS.md, noted compatibility through WP 5.8+, and minor reorganization and tweaks to unit tests 2.2.10 Trivial update: noted compatibility through WP 5.7+ and updated copyright date (2021) 2.2.9 Trivial update: Restructured unit test file structure and noted compatibility through WP 5.5+. 2.2.8 Trivial update: Fixed a link in readme.txt, updated a few URLs to be HTTPS and noted compatibility through WP 5.4+. 2.2.7 Trivial update: noted compatibility through WP 5.3+ and updated copyright date (2020). 2.2.6 Trivial update: created CHANGELOG.md to store historical changelog outside of readme.txt, noted compatibility through WP 5.1+, and updated copyright date (2019) 2.2.5 Trivial update: noted compatibility through WP 4.9+, added README.md for GitHub, updated copyright date (2018), and other minor changes 2.2.4 Trivial update: fixed some unit tests, noted compatibility through WP 4.7+, updated copyright date 2.2.3 Trivial update: improved support for localization, minor unit test tweaks, verified compatibility through WP 4.4+, and updated copyright date (2016) 2.2.2 Trivial update: noted compatibility through WP 4.1+ and updated copyright date (2015) 2.2.1 Trivial update: noted compatibility through WP 4.0+; added plugin icon. 2.2 Recommended minor update: fixed a few minor bugs; added unit tests; noted compatibility through WP 3.8+ 2.1.3 Trivial update: noted compatibility through WP 3.5+; minor documentation changes 2.1.2 Trivial update: noted compatibility through WP 3.4+; explicitly stated license 2.1.1 Trivial update: noted compatibility through WP 3.3+ and minor readme.txt tweaks 2.1 Recommended minor update. Highlights: fixed a few minor bugs, added tests, clarified/updated some documentation, and verified compatibility with WordPress 3.2. 2.0 Recommended feature update. Highlights: added c2c_if_plugin_file_exists() and c2c_if_theme_file_exists(); added %file_directory% and %file_extension%; added hooks for customization; minor fixes and tweaks; renamed blog_time() to c2c_blog_time(); renamed class; verified WP 3.0 compatibility.

更新日志:

2.3.1 (2023-05-18) 2.3 (2021-10-09) Highlights: This minor release removes support for the long-deprecated if_file_exists(), adds DEVELOPER-DOCS.md, notes compatibility through WP 5.8+, and minor reorganization and tweaks to unit tests. Details: 2.2.10 (2021-04-14)