跳到内容

WaltersWorks File Library

v1.0.0

waltersworks · 2026年11月19日 上架

A simple, secure library of downloadable files, listed by category with shortcodes. A drop-in replacement for Better File Download.

正在使用
10 以下
评分
暂无
累计下载
120
最近更新
2026年11月20日
需要 WordPress 6.0+已测试到 7.1.5PHP 7.4+

贡献者

WaltersWorks File Library gives your site a small, dependable library of downloadable files. Add a file, put it in one or more categories, and list a category anywhere with a shortcode.

It is also a drop-in replacement for the Better File Download plugin. It reads the same data, supports the same shortcodes, and keeps old /bfd_download/{name}/ links working, so you can switch without re-entering anything or editing your pages.

Features

  • A Downloads screen in the admin, with a File column and a category filter.
  • Upload a file or choose one from the Media Library.
  • [wwfl_category] lists every file in a category, newest first.
  • [wwfl_file] links to a single file.
  • PDFs open in the browser. Other file types download.
  • Clean, accessible list markup that inherits your theme’s styles.
  • Purges W3 Total Cache, WP Super Cache, WP Rocket and LiteSpeed Cache after a change, so visitors see new files right away.
  • Never deletes your data. Deactivating or deleting the plugin leaves every file and category in place.

Security

WaltersWorks File Library refuses script and executable files, so a Download can’t be used to put a program or web page on your site. It checks:

  • The file’s extension, including double extensions such as report.php.pdf.
  • Disguised names: right-to-left override and other hidden characters, control characters, colons, and names ending in a dot or space.
  • The file’s contents, so a program renamed to invoice.pdf is still caught.

When a file is refused, or an upload fails because of a size limit or a server problem, WaltersWorks File Library says what went wrong and how to fix it. These checks apply only to Downloads. Uploads anywhere else on your site are unchanged.

Shortcodes

List the files in a category:

[wwfl_category category="reports"]

Options:

  • category (required): the category’s slug.
  • latest: show only this many files. Default: all.
  • orderby: date, title or menu_order. Default: date.
  • order: DESC or ASC. Default: DESC.

Link to one file:

[wwfl_file id="123"]

Options:

  • id (required): the Download’s ID, shown in the address bar when you edit it.
  • title: link text. Default: the Download’s title.

Better File Download’s [download_category] and [download] shortcodes work the same way, so existing pages need no changes. WaltersWorks File Library only registers them when no other plugin already uses those names.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums