內容簡介
WordPress 允許您將上傳文件放置在以年和月為基礎的文件夾中。Custom Upload Dir 會更具靈活性,您可以從變數(如文章標題、分類、作者、發布日期及許多其他變數)構建路徑,
我創建了 Custom Upload Dir,確保我的文件系統始終反映站點結構。這樣我就可以在需要時手動查找文件。它還簡化了備份和平台遷移。
// Ulf Benjaminsson
Changelog v. 3.4.6 (2020-07-17)
修正空指針錯誤。(感謝 defotoverij!)
Changelog v. 3.4.5 (2020-05-05)
新增法語翻譯。(感謝 bibi699depreau!)
Changelog v. 3.4.4 (2019-03-24)
修復了一些 PHP 警告
移除了 %permalink% 模板,因為它會破壞對草稿的上傳。
Changelog v. 3.4.3.2 (2019-03-24)
新增對 Gutenberg 編輯器的支援
Changelog v. 3.4.2 (2015-03-16)
新增篩選器 ‘cud_generate_path’,所以您可以使用任何變數輕鬆調整路徑
新增 %mime_type%,以按文件類型排序
新增 %author_role%,以按作者角色排序
即將推出:不同的文章類型可以有自己的上傳位置規則。目前缺少管理界面。如果您願意幫忙,請告訴我。
Changelog v. 3.4 (2013-02-09)
新增 %file_ext%,以按文件類型排序
提供對從 WordPress 應用程式上傳的暫定支援。
移除了對“基本上傳文件夾”的設置,因為 WP 核心不再公開此信息
清理了管理頁面上的一些 PHP 錯誤
修正了管理頁面上的 CSS 瀏覽器兼容性問題
Changelog v. 3.3 (2011-12-18)
支援 WordPress 3.3
支援標籤和分類
支援自訂分類
新增 %current_user% 和 %permalink%
新增所有永久連結標籤
新增管理頁面上的測試功能
更舊的 Changelog 要點請移步此處。
其他資訊
版權所有 (C) 2007-2019 Ulf Benjaminsson
本程式是自由軟體,您可以根據 GNU 通用公眾許可證的條款進行重新發布和/或修改
它,以及您選擇的任何後續版本。
本程式是基於希望它有用之目的分發的,但沒有任何保證;即使是對於商業上的適銷性或適用性
的暗示保證,也不保證。詳細內容請參閱 GNU 通用公共許可協議。
您應該已經收到一份 GNU 通用公眾許可的副本;如果沒有,請寫信給自由軟體
基金會,位於波士頓的 59 Temple Place,Suite 330,MA 02111-1307,USA
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
WordPress allow you to put uploads in year- and month-based folders. Custom Upload Dir is more flexible. You can construct paths from variables like post title, category, post author, post date and many more.
I created Custom Upload Dir ensure my file system is always mirroring the site structure. This ensures I can always find files manually when needed. It also simplifies backups and platform migrations.
//Ulf Benjaminsson
Changelog v. 3.4.6 (2020-07-17)
fixed a null dereference error. (thanks, defotoverij!)
Changelog v. 3.4.5 (2020-05-05)
added french translation (thanks, bibi699depreau!)
Changelog v. 3.4.4 (2019-03-24)
Fixed a few PHP warnings
Removed the %permalink% template as it broke uploads to drafts.
Changelog v. 3.4.3.2 (2019-03-24)
Added support for the Gutenberg editor.
Changelog v. 3.4.2 (2015-03-16)
Added filter ‘cud_generate_path’ so you can easily adjust the path with any variable you want.
Added %mime_type% to sort files by mime type
Added %author_role% to sort files by author role.
Coming: support for per-post-type settings. Eg: every post type can have their own rules for where to place uploads. Currently missing the admin interface. If you feel like helping out, let me know.
Changelog v. 3.4 (2013-02-09)
Added %file_ext% to sort by file type
Added tentative support for uploads from WordPress apps.
Removed setting for “Base upload folder” as WP core no longer exposes this
Cleared out some PHP error on the admin page
Fixed leaking CSS on admin page
Changelog v. 3.3 (2011-12-18)
Support for WordPress 3.3
Support for tags and categories
Support for custom taxonomies
Added %current_user%, %permalink%
Added all permalink tags
Added test-function to admin page
Older changelogs moved here.
Additional Info
Copyright (C) 2007-2019 Ulf Benjaminsson
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
