[wordpress插件] Custom Upload Dir自定义上传目录

wordpress 插件 文章 2020-04-10 05:41 407 0 全屏看文

AI助手支持GPT4.0

评分
86
描述

WordPress allow you to put uploads in year- and month-based folders.

WordPress允许您将上载放在基于年和月的文件夹中。

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.

我创建了Custom Upload Dir,以确保我的文件系统始终镜像站点结构。

This ensures I can always find files manually when needed.

这样可以确保我始终可以在需要时手动查找文件。

It also simplifies backups and platform migrations.

它还简化了备份和平台迁移。

//Ulf Benjaminsson

// 乌尔·本杰明森

Changelog v. 3.4.4 (2019-03-24)

Changelog v。3.4.4(2019-03-24)

    1. Fixed a few PHP warnings
    2. 修复了一些PHP警告

    3. Removed the %permalink% template as it broke uploads to drafts.
    4. 删除了%permalink%模板,因为它破坏了向草稿的上传。

    Changelog v. 3.4.3.2 (2019-03-24)

    Changelog v.3.4.3.2(2019-03-24)

      1. Added support for the Gutenberg editor.
      2. 增加了对Gutenberg编辑器的支持。

      Changelog v. 3.4.2 (2015-03-16)

      Changelog v.3.4.2(2015-03-16)

        1. Added filter 'cud_generate_path' so you can easily adjust the path with any variable you want.

        2. 添加了过滤器“ cud_generate_path” ,因此您可以轻松地使用所需的任何变量来调整路径。

        3. Added %mime_type% to sort files by mime type
        4. 添加了%mime_type%以按mime类型对文件进行排序

        5. Added %author_role% to sort files by author role.
        6. 添加了%author_role%以按作者角色对文件进行排序。

        7. Coming: support for per-post-type settings.

        8. 即将推出:支持按帖子类型的设置。

          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.

        9. 如果您想帮忙,请告诉我。

        Changelog v. 3.4 (2013-02-09)

        Changelog v.3.4(2013-02-09)

          1. Added %file_ext% to sort by file type
          2. 添加了%file_ext%以按文件类型排序

          3. Added tentative support for uploads from WordPress apps

          4. 添加了对WordPress应用上传的临时支持

            >.

          5. >。

          6. Removed setting for “Base upload folder” as WP core no longer exposes this
          7. 已删除“基本上载文件夹”的设置,因为WP核心不再公开此设置

          8. Cleared out some PHP error on the admin page
          9. 在管理页面上清除了一些PHP错误

          10. Fixed leaking CSS on admin page
          11. 修复了管理页面上泄漏的CSS

          Changelog v. 3.3 (2011-12-18)

          Changelog v.3.3(2011-12-18)

            1. Support for WordPress 3.3
            2. 对WordPress 3.3的支持

            3. Support for tags and categories
            4. 支持标签和类别

            5. Support for custom taxonomies
            6. 支持自定义分类法

            7. Added %current_user%, %permalink%
            8. 添加了%current_user%,%permalink%

            9. Added all permalink tags
            10. 添加了所有永久链接标签

            11. Added test-function to admin page
            12. 将测试功能添加到管理页面

            Older changelogs moved here.

            旧的更改日志已移至此处。

            Additional Info

            其他信息

            Copyright (C) 2007-2019 Ulf Benjaminsson

            版权所有(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

            根据
            发布的GNU通用公共许可的条款进行

            the Free Software Foundation;

            自由软件基金会;

            either version 2 of the License, or

            许可的版本2或

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

            GNU通用公共许可证以获取更多详细信息。

            You should have received a copy of the GNU General Public License

            您应该已经收到了GNU通用公共许可证的副本

            along with this program;

            与该程序一起;

            if not, write to the Free Software

            如果没有,请写信给免费软件

            Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

            Foundation,Inc.,59 Temple Place,Suite 330,Boston,MA 02111-1307 USA

安装步骤

    1. Extract the custom-upload-dir-folder and transfer it to the /wp-content/plugins/ directory
    2. 提取 custom-upload-dir 文件夹并将其传输到 / wp-content / plugins / 目录

    3. Activate the plugin through the ‘Plugins’ menu in WordPress
    4. 通过WordPress中的“插件”菜单激活插件

    5. Customize your directory structure in Settings -> Custom Upload Dir
    6. 设置->自定义上传目录 中自定义目录结构

下载地址
https://downloads.wordpress.org/plugin/custom-upload-dir.3.4.4.zip
-EOF-

AI助手支持GPT4.0