這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Dynamic Shortcode

外掛說明

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〉的開發相關工作。

參與者

將〈Dynamic Shortcode〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄