Title: Nzymes
Author: Andrea Ercolino
Published: <strong>2017 年 5 月 29 日</strong>
Last modified: 2017 年 5 月 29 日

---

搜尋外掛

![](https://ps.w.org/nzymes/assets/banner-772x250.png?rev=1666524)

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

![](https://ps.w.org/nzymes/assets/icon-128x128.png?rev=1666524)

# Nzymes

 由 [Andrea Ercolino](https://profiles.wordpress.org/aercolino/) 開發

[下載](https://downloads.wordpress.org/plugin/nzymes.1.0.0.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/nzymes/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/nzymes/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/nzymes/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/nzymes/#developers)

 [技術支援](https://wordpress.org/support/plugin/nzymes/)

## 外掛說明

_Your Problem_

 * You want to do something inside a post, but a plugin might not exist.

_Nzymes Solution_

 * Insert PHP code into posts’ content easily and safely.
 * Program features by yourself or trust some of your blog’s authors.

#### Example

When citing authors in a post, you’d like to show the number of posts they published.
Maybe there is a plugin for that, maybe there is not. Anyway, how difficult to code
would it be? Quite easy, actually, given that WordPress has a function to do exactly
that (_count\_user\_posts_).

With Nzymes, you could cite authors like this

> As you know, {[ =john= | @my.cite(1) ]} and I are very good friends.

Which could be shown like this

> As you know, John (42 posts) and I are very good friends.

With Nzymes, many things are just a couple of PHP lines away.

 * Why not display “(42 posts)” in red?
 * Why not link “John” to John’s posts?

#### At a glance

Nzymes injections are expressions like this: {[ enzyme-1 | enzyme-2 | … enzyme-N]}

 * Nzymes automatically filters title, excerpt, and content of a post looking for
   injections.
 * For each found injection, it orderly replaces each enzyme with its value, left
   to right.
 * Then it replaces the value of the last enzyme to the whole injection.

Manual: https://github.com/aercolino/nzymes/blob/master/nzymes-manual.md

#### Reach out

 * Community: https://www.facebook.com/NzymesPlugin/
 * Download: https://wordpress.org/plugins/nzymes/
 * Develop: https://github.com/aercolino/nzymes

## 螢幕擷圖

[⌊Example. Unusual words. Picture 1/4. Reading. Nzymes ON.⌉⌊Example. Unusual words.
Picture 1/4. Reading. Nzymes ON.⌉[

Example. Unusual words. Picture 1/4. Reading. Nzymes ON.

[⌊Example. Unusual words. Picture 2/4. Reading. Nzymes OFF.⌉⌊Example. Unusual words.
Picture 2/4. Reading. Nzymes OFF.⌉[

Example. Unusual words. Picture 2/4. Reading. Nzymes OFF.

[⌊Example. Unusual words. Picture 3/4. Writing. Content.⌉⌊Example. Unusual words.
Picture 3/4. Writing. Content.⌉[

Example. Unusual words. Picture 3/4. Writing. Content.

[⌊Example. Unusual words. Picture 4/4. Writing. Custom fields.⌉⌊Example. Unusual
words. Picture 4/4. Writing. Custom fields.⌉[

Example. Unusual words. Picture 4/4. Writing. Custom fields.

[⌊Settings. See the manual.⌉⌊Settings. See the manual.⌉[

Settings. See the manual.

## 安裝方式

 1. Upload the zip file.
 2. Activate.

## 常見問題集

  Installation Instructions

 1. Upload the zip file.
 2. Activate.

  What is an enzyme?

Any of the following:

 1. A string or an unsigned integer.
 2. A locator of an attribute or a custom field of a post or a post’s author.

  What is the value of an enzyme?

Any of the following:

 1. Its literal value.
 2. The value referenced by the locator (transclusion).
 3. The value returned by evaluating the PHP code referenced by the locator (execution).

  Is Nzymes secure?

Nzymes enforces a rich set of capabilities and roles.

 1. After activating Nzymes, only administrators have all the capabilities.
 2. To allow authors to use Nzymes, administrators may explicitly assign roles as they
    see fit.

For example, to execute code of some author into a post of some injector, first 
of all the author must be able to `create_dynamic_custom_fields`. Then, additionally,
either the injector and the author are the same person or the injector can `use_others_custom_fields`
and the author can `share_dynamic_custom_fields`.

  OK, where’s the manual?

 * https://github.com/aercolino/nzymes/blob/master/nzymes-manual.md

  Does Nzymes replace Enzymes?

Yes! However, if you currently use [Enzymes](https://wordpress.org/plugins/enzymes/),
then both can coexist in your blog. Nzymes is much easier to use and it’s also much
more powerful than Enzymes. Unfortunately, sometimes they are incompatible on the
same post. Therefore, Nzymes will only process enzymes injected in posts created
after its installation. See the manual to know how you can bend this rule.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈Nzymes〉的開發相關工作。

參與者

 *   [ Andrea Ercolino ](https://profiles.wordpress.org/aercolino/)

[將〈Nzymes〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/nzymes)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/nzymes/)、查看
[SVN 存放庫](https://plugins.svn.wordpress.org/nzymes/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/nzymes/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/nzymes/)。

## 變更記錄

#### 1.0.0

First version.

## 中繼資料

 *  版本 **1.0.0**
 *  最後更新 **9 年前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 4.7 或更新版本 **
 *  已測試相容的 WordPress 版本 **4.7.35**
 *  語言
 * [English (US)](https://wordpress.org/plugins/nzymes/)
 * 標籤:
 * [attributes](https://tw.wordpress.org/plugins/tags/attributes/)[author](https://tw.wordpress.org/plugins/tags/author/)
   [custom fields](https://tw.wordpress.org/plugins/tags/custom-fields/)[inject](https://tw.wordpress.org/plugins/tags/inject/)
   [post](https://tw.wordpress.org/plugins/tags/post/)
 *  [進階檢視](https://tw.wordpress.org/plugins/nzymes/advanced/)

## 評分

這個項目尚無任何評論記錄。

[撰寫評分](https://wordpress.org/support/plugin/nzymes/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/nzymes/reviews/)

## 參與者

 *   [ Andrea Ercolino ](https://profiles.wordpress.org/aercolino/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/nzymes/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://www.paypal.me/AndreaErcolino)