Title: eGrapes WP EMails Events
Author: neerajmourya
Published: <strong>2017 年 7 月 29 日</strong>
Last modified: 2017 年 7 月 29 日

---

搜尋外掛

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

![](https://s.w.org/plugins/geopattern-icon/egrapes-wp-emails-events.svg)

# eGrapes WP EMails Events

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

[下載](https://downloads.wordpress.org/plugin/egrapes-wp-emails-events.zip)

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

 [技術支援](https://wordpress.org/support/plugin/egrapes-wp-emails-events/)

## 外掛說明

A Plugin or framework to add events to send customised email messages.
 This also
adds a user interface in wordpress’s settings/options menu in wp admin to customise
each event’s email message. Subject and message text can be edited from user interface.
Events can be added by filter ewee_events.

 * This plugin does not provide any functionality alone. This can be requirement
   of other plugins and themes, as developer can use this as framework.

## 安裝方式

 1. Upload the plugin files to the `/wp-content/plugins/plugin-name` directory, or 
    install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress.

## 常見問題集

  Installation Instructions

 1. Upload the plugin files to the `/wp-content/plugins/plugin-name` directory, or 
    install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress.

  How to create an event group?

Write the code in your theme’s functions.php or your custom plugin’s file.

add_filter(‘ewee_events_groups’, ‘custom_events_groups’, 10, 1); //adding mail events
groups
 function custom_events_groups($events_groups){ $events_groups[‘products’]
= ‘Products’; return $events_groups; }

  How to create an event?

Write the code in your theme’s functions.php or your custom plugin’s file.

add_filter(‘ewee_events’, ‘custom_mail_events’, 10, 1); //adding mail events
 function
custom_mail_events($events){ $events[‘order_created’] = array( ‘name’ => ‘Order 
Created’, //Name of the event. ‘description’ => ‘When order created.’, //Description
of the event. ‘send’ => true, //Whether to use this event to send mail or not. ‘
subject’ => ‘Order %orderno% Created.’, //Subject of the message. can be modified
from wp admin dashboard. Use token keys wrapped by %. ‘message’ => ‘An Order with
Order No. %orderno% has been created.’, //Message. can be modified from wp admin
dashboard. Use token keys wrapped by %. ‘tokens’ => array(‘orderno’), //Define tokens.‘
group’ => ‘products’, //Event group. ); return $events; }

  How to trigger the event?

Write the code in your theme’s functions.php or your custom plugin’s file when you
want to send specific email.

Use send_mail method of EGrapesWPEmailsEvents class.

public function send_mail($event_key, $tokens = array(), $to, $headers = ”, $attachments
= array())

e.g.,

$eGrapesWPEmailsEvents = EGrapesWPEmailsEvents::get_instance(); //Get the object
of class EGrapesWPEmailsEvents.
 $eGrapesWPEmailsEvents->send_mail(‘order_created’,
array(‘orderno’ => ‘abc987’), ‘abc@gmail.com’); //call the method send_mail.

## 使用者評論

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

## 參與者及開發者

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

參與者

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

[將〈eGrapes WP EMails Events〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/egrapes-wp-emails-events)

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

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

## 變更記錄

#### 1.0.0

 * Emails Events
 * Emails Events groups.
 * Emails customization user interface for specific events.

## 中繼資料

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

## 評分

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

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

[查看全部使用者評論](https://wordpress.org/support/plugin/egrapes-wp-emails-events/reviews/)

## 參與者

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

## 技術支援

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

 [檢視技術支援論壇](https://wordpress.org/support/plugin/egrapes-wp-emails-events/)

## 贊助

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

 [ 贊助這個外掛 ](http://www.egrapes.in/)