Title: Shortcode Datastore
Author: azumbro
Published: <strong>2020 年 2 月 9 日</strong>
Last modified: 2022 年 5 月 28 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/shortcode-datastore/assets/icon-256x256.png?rev=2241421)

# Shortcode Datastore

 作者：[azumbro](https://profiles.wordpress.org/azumbro/)

[下载](https://downloads.wordpress.org/plugin/shortcode-datastore.1.2.0.zip)

 * [详情](https://cn.wordpress.org/plugins/shortcode-datastore/#description)
 * [评价](https://cn.wordpress.org/plugins/shortcode-datastore/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/shortcode-datastore/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/shortcode-datastore/#developers)

 [支持](https://wordpress.org/support/plugin/shortcode-datastore/)

## 描述

A WordPress plugin that allows for flexible text or HTML to be bound to shortcodes
that can be inserted into pages, posts, or templates. This allows for the same text/
HTML to be inserted in multiple places and then managed from one dashboard.

### Usage

 * Activating the plugin creates a new plugin menu option in the left sidebar of
   the WordPress admin dashboard titled “Shortcode Datastore”.
 * Clicking the “Shortcode Datastore” button will open the plugin dashboard which
   will display a list of the currently available shortcodes.
    - Clicking the “Add Shortcode” button will open a new editing window to create
      a shortcode.
       * The key selected for the new shortcode must be unique (cannot be used for
         another shortcode).
       * By default, keys are converted to lower case and spaces are replaced with
         underscores.
       * The shortcode value can be entered in the standard WordPress editor either
         as text or HTML. This value is what will be displayed when the shortcode
         is used on the site.
    - The shortcode table displays the existing shortcode entries.
       * Clicking the “Edit” button for a row will open an edit window where the
         shortcode value can be modified.
       * Clicking the “Delete” button for a row will remove the shortcode key and
         value.
       * The shortcode itself can be copied from the input field and inserted into
         a page, post, or template (anywhere standard WordPress shortcodes work).
       * Replacement variables are a way to add dynamic content to your shortcodes.
         Replacement variables follow the format of `%NAME%`, with the value being
         replaced at render time. The replacement variables currently supported 
         are:
          - `%YEAR%`: Replaced with the current four character year value.
 * Shortcode Datastore also works with WordPress multisite installations. Shortcodes
   can be created and accessed from any subsite where the plugin is enabled (network
   activation is recommended).

## 安装

 * Option 1: Download the plugin zip directly from the WordPress plugin repository
   here (https://wordpress.org/plugins/shortcode-datastore/). You can then upload
   the zip file to the `plugins` directory of your WordPress installation and activate
   it from the plugin menu.
 * Option 2: Select “Add New” from under “Plugins” on the left sidebar of the WordPress
   admin dashboard and then search for “Shortcode Datastore” in the search field.
 * Following installation, the plugin must be activated from the “Plugins” page 
   on the WordPress admin dashboard.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Shortcode Datastore」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ azumbro ](https://profiles.wordpress.org/azumbro/)

「Shortcode Datastore」插件已被翻译至 2 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/shortcode-datastore/contributors)
为本插件所做的贡献。

[帮助将「Shortcode Datastore」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/shortcode-datastore)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/shortcode-datastore/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/shortcode-datastore/)，或通过[RSS](https://plugins.trac.wordpress.org/log/shortcode-datastore/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/shortcode-datastore/)。

## 额外信息

 *  版本 **1.2.0**
 *  最后更新：**4 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 4.6 或更高版本 **
 *  已测试的最高版本为 **6.0.11**
 *  PHP 版本 ** 5.2.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/shortcode-datastore/) 、 [Spanish (Chile)](https://cl.wordpress.org/plugins/shortcode-datastore/)
   和 [Spanish (Spain)](https://es.wordpress.org/plugins/shortcode-datastore/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/shortcode-datastore)
 * 标签
 * [shortcode](https://cn.wordpress.org/plugins/tags/shortcode/)[variables](https://cn.wordpress.org/plugins/tags/variables/)
 *  [高级视图](https://cn.wordpress.org/plugins/shortcode-datastore/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/shortcode-datastore/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/shortcode-datastore/reviews/)

## 贡献者

 *   [ azumbro ](https://profiles.wordpress.org/azumbro/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/shortcode-datastore/)