[wordpress插件] Attachment Taxonomies依附分类法

wordpress 插件 文章 2020-02-22 22:20 522 0 全屏看文

AI助手支持GPT4.0

评分
94
描述

The plugin adds two taxonomies to the WordPress media library which are then available to categorize and tag your attachments.

该插件将两个分类法添加到WordPress媒体库中,然后可用于分类和标记附件。

By default, these taxonomies, although sharing the same names and behavior, are separate from the default post taxonomies, but this can easily be changed if desired.

默认情况下,这些分类法虽然具有相同的名称和行为,但它们与默认的后分类法是分开的,但是可以根据需要轻松地进行更改。

The plugin follows WordPress Core principles and offers a lightweight alternative to similar approaches which often tend to be incredibly flexible, but at the same time complicated and bloated.

该插件遵循WordPress核心原则,并为类似方法提供了轻量级替代方法,这些方法通常往往具有难以置信的灵活性,但同时又复杂又肿。

And if you have a little knowledge of code, you should be able to adjust the plugin exactly to your needs if the default configuration doesn’t satisfy you.

而且,如果您对代码有一点了解,那么如果默认配置不能满足您的需求,那么您应该能够完全根据需要调整插件。

Features

功能

    • Adds categories and tags to the Media Library (independent from the regular post categories and tags)
    • 将类别和标签添加到媒体库(独立于常规文章类别和标签)

    • Inserts filter dropdowns for attachment taxonomies into the media toolbar and media modal
    • 将附件分类法的过滤器下拉列表插入媒体工具栏和媒体模式

    • Allows to pick taxonomy terms for attachments from within the Attachment Selection & Edit modals
    • 允许从“附件选择和编辑”模式中选择附件的分类法术语

    • Adds a setting for the default attachment category
    • 为默认附件类别添加设置

    • Enhances the [gallery] shortcode so that images of a specific attachment taxonomy can be included automatically
    • 增强 [gallery] 短代码,以便可以自动包含特定附件分类法的图像

    • Lightweight plugin following WordPress Core principles
    • 遵循WordPress核心原则的轻量级插件

    • “Decisions, not Options”
    • “决定,而不是选择权”

    • Can easily be used as a must-use plugin
    • 可以轻松用作必备插件

    • Provides a flexible API to add other attachment taxonomies or disable the existing ones for developers
    • 提供了一种灵活的API,可以为开发人员添加其他附件分类法或禁用现有的附件分类法

    • Provides an easy-to-use has_default argument that can be used when registering an attachment taxonomy in order to automatically add a setting for the default taxonomy term
    • 提供易于使用的 has_default 参数,该参数可在注册附件分类法时使用,以便自动为默认分类法术语添加设置

    • Developers are free to use the plugin-provided object-oriented taxonomy approach or use familiar WordPress Core functions
    • 开发人员可以自由使用插件提供的面向对象分类法或使用熟悉的WordPress Core函数

安装步骤

As a regular plugin

作为常规插件

    1. Upload the entire attachment-taxonomies folder to the /wp-content/plugins/ directory or download it through the WordPress backend.
    2. 将整个 attachment-taxonomies 文件夹上载到 / wp-content / plugins / 目录,或通过WordPress后端下载。

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

    As a must-use plugin

    作为必备插件

    If you don't know what a must-use plugin is, you might wanna read its introduction in the WordPress Codex

    如果您不知道什么是必须使用的插件,则可以阅读WordPress Codex中的简介。

    – don't worry, that's nothing purely for developers.

    –不用担心,这完全不适合开发人员。

      1. Upload the entire attachment-taxonomies folder to the /wp-content/mu-plugins/ directory (create the directory if it doesn't exist).

      2. 将整个 attachment-taxonomies 文件夹上载到 / wp-content / mu-plugins / 目录(如果该目录不存在,则创建该目录)。

        li>

        li>

      3. Move the file /wp-content/mu-plugins/attachment-taxonomies/attachment-taxonomies.php out of its directory to /wp-content/mu-plugins/attachment-

      4. 将文件 /wp-content/mu-plugins/attachment-taxonomies/attachment-taxonomies.php 从其目录中移出到 / wp-content / mu-plugins / attachment-

        taxonomies.php.

      5. taxonomies.php

      Note that, while must-use plugins have the advantage that they cannot be disabled from the admin area, they cannot be updated through WordPress, so you’re recommended to keep them up to date manually.

      请注意,尽管必须使用的插件具有无法从管理区域禁用的优点,但是无法通过WordPress更新,因此建议您手动对其进行更新。

      Administration

      管理

      Once the plugin is activated, you will see two new submenu items under Media (Categories and Tags).

      激活插件后,您将在Media(类别和标签)下看到两个新的子菜单项。

      The plugin follows the WordPress Core philosophy “Decisions, not Options” – therefore there is no additional settings screen.

      该插件遵循WordPress核心理念“决定,而不是选项” –因此,没有其他设置屏幕。

      However, the plugin is easily extendable and adjustable by developers (see FAQ).

      但是,该插件易于开发人员扩展和调整(请参见常见问题解答)。

      So if the base configuration does not suit your needs, it shouldn’t be too hard to change that.

      因此,如果基本配置不符合您的需求,则更改它应该不会太难。

下载地址
https://downloads.wordpress.org/plugin/attachment-taxonomies.1.1.1.zip
-EOF-

AI助手支持GPT4.0