Title: Dynamic Shortcode
Author: FanaticPythoner
Published: <strong>2021 年 1 月 8 日</strong>
Last modified: 2021 年 1 月 8 日

---

搜索插件

![](https://ps.w.org/dynamic-shortcode-ajax/assets/banner-772x250.png?rev=2452258)

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

![](https://ps.w.org/dynamic-shortcode-ajax/assets/icon-128x128.jpg?rev=2452258)

# Dynamic Shortcode

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

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

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

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

## 描述

Dynamic Shortcode is a 100% FREE plugin that allows users to make any shortcode 
asynchronous in one simple step, meaning it won’t block the WordPress page render
at all. Dynamic Shortcode has a simple and user friendly interface, making it extremely
easy to use.

Dynamic Shortcode can either replace every occurence of a given shortcode without
your intervention (currently in beta, the feature is called Dynamic Replace), or
you can change every shortcode yourself in one simple step:

 * Find an occurence of your shortcode, and replace your shortcode’s name with **
   wp_dynamic** and add a parameter named **shortcode** with your shortcode’s name
   as a value. For example:
 * **[myShortcode]
   becomes
 * **[wp_dynamic shortcode=”myShortcode”]

But wait! That’s not all: You can even add custom placeholders for each individual
shortcode. Placeholders are displayed when Dynamic Shortcode is loading a shortcode
asynchronously.

Dynamic Shortcode is packed with tons of other useful features.

For each individual shortcode on your site, here’s everything Dynamic Shortcode 
can do for you:

 * Make any already existing shortcode asynchronous automatically or in a single
   step
 * Add custom placeholders for when your Dynamic Shortcode is loading your shortcode
 * Run a validation function before executing your shortcode when making the asynchronous
   call
 * Choose which GET parameters to ignore when doing the asynchronous call
 * Choose which POST parameters to ignore when doing the asynchronous call
 * Choose which shortcode attribute to ignore when doing the asynchronous call

## 屏幕截图

 * [[
 * Dynamic Shortcode – Shortcodes
 * [[
 * Dynamic Shortcode – Placeholders
 * [[
 * Dynamic Shortcode – Global Settings
 * [[
 * Dynamic Shortcode – Keep It Alive
 * [[
 * Dynamic Shortcode – Notice
 * [[
 * Dynamic Shortcode – Help

## 安装

 1. Upload the plugin files to the `/wp-content/plugins/dynamic-shortcode-ajax` directory,
    or install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress
 3. Use the Shortcodes admin menu to configure and use the plugin

## 常见问题

### Where is the menu located?

Go in your wp-admin page. Look at the admin menu on your left, you should see a 
tab “Shortcodes” with the Dynamic Shortcode logo.

### If I use the Dynamic Replace setting, will it break my site?

Dynamic Replace will not permanently change your html pages: it works by replacing
the shortcodes dynamically before each page load. Thus, it will not overwrite your
html pages in any way.

### Does Dynamic Shortcode sanitize, validate and/or escape my data?

Dynamic Shortcode act as a black box proxy: It takes the very state of the request
while it tries to call the original shortcode, saves it, then reload it when the
AJAX call is made to execute the original shortcode. Since Dynamic Shortcode is 
a black box proxy, it does not alter the original request in any way. While make
sure that no PHP remote code execution occur while the parameters are sent through
the Dynamic Shortcode proxy, it is your responsibility to validate, escape and sanitize
any parameter sent to your shortcode. It is also your your responsibility to make
sure that the web request is legitimate.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

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

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

### 对开发感兴趣吗?

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

## 额外信息

 *  版本 **1.0**
 *  最后更新：**5 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 5.4 或更高版本 **
 *  已测试的最高版本为 **5.6.17**
 *  语言
 * [English (US)](https://wordpress.org/plugins/dynamic-shortcode-ajax/)
 * 标签
 * [ajax](https://cn.wordpress.org/plugins/tags/ajax/)[async](https://cn.wordpress.org/plugins/tags/async/)
   [Dynamic](https://cn.wordpress.org/plugins/tags/dynamic/)[dynamic shortcode](https://cn.wordpress.org/plugins/tags/dynamic-shortcode/)
   [shortcode](https://cn.wordpress.org/plugins/tags/shortcode/)
 *  [高级视图](https://cn.wordpress.org/plugins/dynamic-shortcode-ajax/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

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

## 支持

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

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

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.paypal.com/donate?hosted_button_id=9PG7333GR22ZA)