Title: eGrapes WP EMails Events
Author: neerajmourya
Published: <strong>29. јул 2017.</strong>
Last modified: 29. јул 2017.

---

Претражи додатке

Овај додатак **није испробан са последња 3 главна издања Вордпреса**. Можда се више
не одржава нити подржава и може имати проблема са усаглашеношћу када се користи 
са новијим издањима Вордпреса.

![](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://sr.wordpress.org/plugins/egrapes-wp-emails-events/#description)
 * [Рецензије](https://sr.wordpress.org/plugins/egrapes-wp-emails-events/#reviews)
 *  [Постављање](https://sr.wordpress.org/plugins/egrapes-wp-emails-events/#installation)
 * [Развој](https://sr.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/)
или се претплатите на [дневник развоја](https://plugins.trac.wordpress.org/log/egrapes-wp-emails-events/)
преко [RSS-а](https://plugins.trac.wordpress.org/log/egrapes-wp-emails-events/?limit=100&mode=stop_on_copy&format=rss).

## Дневник измена

#### 1.0.0

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

## Мета

 *  Издање **1.0.0**
 *  Последње ажурирање **пре 9 година**
 *  Активних постављања **Мање од 10**
 *  Издање Вордпреса ** 4.0 или новије **
 *  Испробано до **4.8.34**
 *  Језик
 * [English (US)](https://wordpress.org/plugins/egrapes-wp-emails-events/)
 * Ознаке
 * [custom emails](https://sr.wordpress.org/plugins/tags/custom-emails/)[emails](https://sr.wordpress.org/plugins/tags/emails/)
 *  [Напредни преглед](https://sr.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/)