Title: CodePros Email Template Builder
Author: codeprosai
Published: <strong>2026 年 5 月 29 日</strong>
Last modified: 2026 年 6 月 4 日

---

搜尋外掛

![](https://ps.w.org/codepros-email-template-builder/assets/banner-772x250.jpg?rev
=3553191)

![](https://ps.w.org/codepros-email-template-builder/assets/icon.svg?rev=3553191)

# CodePros Email Template Builder

 由 [codeprosai](https://profiles.wordpress.org/codeprosai/) 開發

[下載](https://downloads.wordpress.org/plugin/codepros-email-template-builder.1.1.0.zip)

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

 [技術支援](https://wordpress.org/support/plugin/codepros-email-template-builder/)

## 外掛說明

CodePros Email Template Editor gives you full control over the transactional emails
sent by WordPress and WooCommerce. Replace the default plain-text or basic HTML 
emails with pixel-perfect branded templates built in a visual drag-and-drop editor—
no coding required.

**Key features:**

 * Visual drag-and-drop email builder with blocks: heading, text, button, image,
   divider, spacer, columns, container, footer, and order items table.
 * Assign templates to 8 WordPress core email types: new user registration (to user
   and admin), password changed notification, password reset, comment notification,
   comment moderation, email address change confirmation, and admin email change
   confirmation.
 * Full WooCommerce transactional email support — all 16 WooCommerce email types
   covered.
 * Per-template control over subject line, preheader text, From Name, and From Email
   address.
 * Live preview with real variable data before sending.
 * Send test emails directly from the admin.
 * Dynamic variable system: `{{order_id}}`, `{{customer_name}}`, `{{order_items_table}}`,
   and more — resolved at send time.
 * CSS inlining for maximum email client compatibility.
 * WooCommerce email active/inactive toggle — instantly switch between the custom
   template and WooCommerce default per email type.
 * Custom hook support (Pro) — intercept any email sent by third-party plugins.
 * Reusable blocks (Pro) — save any block as a reusable snippet and insert it across
   multiple templates.
 * Per-side padding controls on heading, text, image, and columns blocks for precise
   spacing.
 * Container block for styled section wrappers with background color, border, and
   border radius.
 * Footer block for branded email footers with copyright text and background styling.

**Built with WordPress-native technology:**

 * React admin SPA using `@wordpress/scripts`.
 * REST API backend (`cpetb/v1` namespace).
 * Custom database table (not post meta) for reliable template storage.
 * No external dependencies for core features — your email data stays on your server.(
   Pro license validation contacts the CodePros AI licensing server — see “External
   Services” below.)

### External Services

This plugin’s core email-building functionality runs entirely on your own server.
No data is transmitted to any third party during template creation, preview, or 
email sending.

The **Pro license verification** feature contacts an external API operated by CodePros
AI (the plugin developer). This is the only external service this plugin uses.

**Service:** CodePros AI Licensing API
 **Endpoint:** `https://api.wp-plugins.codepros.
ai` **Operated by:** CodePros AI **Terms of Service:** https://codepros.ai/terms**
Privacy Policy:** https://codepros.ai/privacy

**When data is transmitted and what is sent:**

 1. **License Activation** — triggered manually when you enter a license key and click“
    Activate” in the plugin’s License settings screen.
 2.  * Your license key (entered by you)
     * Your site name (from WordPress _Settings  General  Site Title_)
     * Your site URL (from WordPress _Settings  General  WordPress Address_)
 3. **License Deactivation** — triggered manually when you click “Deactivate” in the
    License settings screen.
 4.  * Your license key
     * The activation instance ID (a token assigned by the licensing server at activation
       time, stored in your database)
 5. **License Validation** — triggered automatically in the background, at most once
    every 12 hours, but **only when a license key is already stored and was previously
    active**. No data is transmitted if no license key has ever been entered.
 6.  * Your license key
     * The activation instance ID

No data is ever sent if you do not enter a license key. Free-tier users are completely
unaffected.

The plugin stores the following license-related data in your WordPress database (
wp_options table):

## 螢幕擷圖

 * [[
 * Visual drag-and-drop email builder with block types.
 * [[
 * WooCommerce Emails management table with active/inactive toggle.
 * [[
 * Template list with status, subject, and quick actions.
 * [[
 * Hook assignment screen for connecting templates to email events.
 * [[

## 安裝方式

 1. Upload the `codepros-email-template-builder` folder to the `/wp-content/plugins/`
    directory, or install directly through the WordPress plugin screen.
 2. Activate the plugin through the **Plugins** screen in WordPress.
 3. Navigate to **Email Templates** in the WordPress admin menu.
 4. Click **New Template** to create your first template using the visual builder.
 5. Go to the **WooCommerce Emails** or **Hook Assignments** tab to connect your template
    to an email hook.

## 常見問題集

### Does this plugin work without WooCommerce?

Yes. The plugin works standalone for WordPress core emails (new user registration,
password reset, email change confirmation). WooCommerce support is optional and 
activates automatically when WooCommerce is installed.

### Will my existing WooCommerce emails still send if I deactivate a template?

Yes. Toggling a template to “inactive” immediately reverts that email type to the
WooCommerce default without removing the assignment. You can re-activate at any 
time.

### What Placeholders are available inside templates?

Available Placeholders depend on the email hook. Common Placeholders include `{{
site_name}}`, `{{site_url}}`, `{{customer_name}}`, `{{customer_email}}`, `{{order_id}}`,`{{
order_total}}`, `{{order_items_table}}`, and more. The variable list is shown inside
the builder for each assigned hook.

### Does the plugin send data to external servers?

All core email-building features operate entirely within your own WordPress installation—
no data leaves your server during normal use.

The **Pro license system** is the only exception. When you enter and activate a 
Pro license key, the plugin communicates with the CodePros AI licensing server (`
https://api.wp-plugins.codepros.ai`) to verify your subscription. See the “External
Services” section below for full details of exactly what is sent, when, and why.

### What PHP version is required?

PHP 7.4 or higher is required.

## 使用者評論

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

## 參與者及開發者

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

參與者

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

[將〈CodePros Email Template Builder〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/codepros-email-template-builder)

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

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

## 變更記錄

#### 1.1.0

**Security & Bug Fixes**
 * Security fix: Added CRLF / email header injection protection—
newline characters are now stripped from all user-supplied header values (From Name,
From Email, subject) before they reach the mailer. * Fix: Custom hook filters were
silently not being registered at startup. The `register_custom_hook_filters()` call
was missing, meaning third-party plugins that fired a `cpetb_custom_*` action would
never be intercepted. Custom hooks now work correctly. * Fix: Dropping a reusable(
saved) block onto the canvas threw “Unknown block type: saved_block”. Added the 
missing `saved_block` catalog entry so blocks resolve correctly when dropped. * 
Fix: Builder metadata comments could appear in rendered email output when template
content contained the `-->` character sequence. Metadata is now Base64-encoded so
the HTML comment boundary is never broken. * Fix: Existing templates with already-
corrupted metadata comments now render cleanly — both the JavaScript and PHP strip
routines use a greedy regex that fully removes the broken comment in one pass.

**Email Builder improvements**
 * Container block now supports nested inner blocks—
you can drag any block inside a container and reorder them freely. * Improved drag-
and-drop stability: dragging blocks into and out of containers no longer causes 
duplicate or missing blocks. * Code refactor of the email builder for improved readability
and long-term maintainability — no behaviour changes.

#### 1.0.0

 * Initial release.
 * Visual drag-and-drop email builder (heading, text, button, image, divider, spacer,
   columns, table blocks).
 * WordPress core email hook support (new user, password reset, email change, comment
   awaiting moderation, email address change confirmation, and admin email change
   confirmation).
 * Full WooCommerce transactional email support (16 email types).
 * Per-template subject, preheader, From Name, From Email overrides.
 * Live preview and send-test functionality.
 * Granular capability system with 7 `cpetb_*` capabilities.
 * WooCommerce active/inactive toggle per email type.
 * New block: Container — styled section wrapper with background color, padding,
   border, and border radius.
 * New block: Footer — pre-styled email footer with text, background color, and 
   alignment controls.
 * Reusable blocks (Pro) — save any block as a reusable snippet and reuse it across
   templates.
 * Per-side padding controls (top/right/bottom/left) for heading, text, image, and
   columns blocks.
 * Background color control added to heading, text, and image blocks.
 * Border radius control added to text block.
 * License management UI — activate/deactivate Pro license from the admin License
   tab.
 * License submenu added to the WordPress admin sidebar for quick access.
 * CodePros AI license gating for WooCommerce Emails, Custom Hooks, and Reusable
   Blocks features.
 * Pro blocks (Products, Posts) now show a PRO badge in the block palette when unlicensed;
   clicking redirects to the License page.
 * Custom Hooks and Reusable Blocks LicenseGate screens now display both Activate
   and Purchase License buttons.
 * Updated empty state icons for Reusable Blocks and Custom Hooks sections.

## 中繼資料

 *  版本 **1.1.0**
 *  最後更新 **19 小時前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 6.3 或更新版本 **
 *  已測試相容的 WordPress 版本 **7.0**
 *  PHP 版本需求 ** 7.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/codepros-email-template-builder/)
 * 標籤:
 * [email](https://tw.wordpress.org/plugins/tags/email/)[email template](https://tw.wordpress.org/plugins/tags/email-template/)
   [template](https://tw.wordpress.org/plugins/tags/template/)[transactional email](https://tw.wordpress.org/plugins/tags/transactional-email/)
   [woocommerce](https://tw.wordpress.org/plugins/tags/woocommerce/)
 *  [進階檢視](https://tw.wordpress.org/plugins/codepros-email-template-builder/advanced/)

## 評分

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

[Your review](https://wordpress.org/support/plugin/codepros-email-template-builder/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/codepros-email-template-builder/reviews/)

## 參與者

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

## 技術支援

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

 [檢視技術支援論壇](https://wordpress.org/support/plugin/codepros-email-template-builder/)