跳到内容

Shortcode Datastore

v1.2.0

azumbro · 2020年2月9日 上架

A Wordpress plugin that allows for flexible text or HTML to be bound to shortcodes that can be inserted into pages, posts, or templates.

正在使用
10 以下
评分
暂无
累计下载
6,169
最近更新
2022年5月29日
需要 WordPress 4.6+已测试到 6.0.19PHP 5.2.4+

贡献者

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

Plums

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

导航

说明

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

© 2026 Plums