Title: Plugin Name: Notify On Action
Author: luciana123
Published: <strong>23 de setembre de 2011</strong>
Last modified: 25 de setembre de 2011

---

Cerca extensions

Aquesta extensió **no s’ha provat en les darreres 3 versions majors del WordPress**.
Segurament no està mantinguda o suportada, i pot tenir problemes de compatibilitat
quan s’usa en versions recents del WordPress.

![](https://s.w.org/plugins/geopattern-icon/notify-on-action.svg)

# Plugin Name: Notify On Action

 Per [luciana123](https://profiles.wordpress.org/luciana123/)

[Baixa](https://downloads.wordpress.org/plugin/notify-on-action.zip)

 * [Detalls](https://ca.wordpress.org/plugins/notify-on-action/#description)
 * [Ressenyes](https://ca.wordpress.org/plugins/notify-on-action/#reviews)
 *  [Instal·lació](https://ca.wordpress.org/plugins/notify-on-action/#installation)
 * [Desenvolupament](https://ca.wordpress.org/plugins/notify-on-action/#developers)

 [Suport](https://wordpress.org/support/plugin/notify-on-action/)

## Descripció

This plugin allows you to sent email notifications whenever an action is performed
on your site. For example, let’s you want to be notified when a user clicks a particular
button on your site, or you want to notify another person when you process a request,
etc This plugin can help you.

Simply follow the steps below:

    ```
        * Create Notification Template using the form below
        * Copy & Paste the following code in the theme/plugin code where you want the email notification to be sent.

        if (has_action("noa_notify_on_action")) do_action( 'noa_notify_on_action','<Enter_Notification_Name>', null);
    ```

There are other options on how to use the plugin. See ‘How to Use’ below

This plugin is available under the GPL license, which means that it’s free. If you
use it for a commercial web site, if you appreciate my efforts or if you want to
encourage me to develop and maintain it, please consider making a donation using
Paypal, a secured payment solution. You just need to click the donate button on 
the settings page and follow the instructions.

#### What about Notify On Action?

### How to Use it

Ways to use this plugin:
 * Send Standard Notification – Create a new Notification
Type in the form below (i.e Notification Name is «SaluteMyFriend») – Add this code
in the Theme/Plugin function when you want the notification to be submitted:

    ```
     if (has_action("noa_notify_on_action")){                       
        do_action( "noa_notify_on_action","SaluteMyFriend", $args);
        }
    ```

Once the do_action executes, an email notification will be send with the information
on the «SaluteMyFriend» Notification Type

    ```
        * Send Notification with Application Specific Data
      You can also submit arguments to be sent in your email. For example, lets say you would like your email template to include application specific information which varies depending on where the user clicks, then you can pass that argument into the do_action function.                        
     - Create a new Notification Type in the form below (i.e Notification Name is "SaluteMyFriend")
    - Wherever you want application specific data to be in the email, create a %xxxx% tag. (i.e In Message text box include %arg1%, %arg2%)
    <pre>
     if (has_action("noa_notify_on_action")){
        $args = array("arg1" => "Good Morning",
              "arg2"=> "Joe Doh"                    
        );

        do_action( "noa_notify_on_action","SaluteMyFriend", $args);
    }
       </pre>

    In the Notification Type you the tags %arg1%, %arg2% to substitute the values sent. The name of the tag (i.e arg needs to match in the template and in the $args variable.

    The name of these arguments need to match between the Notification Type template and the argument sent by the application. For example, if you write in the message of your Notification type "The price of %product% is %price%", then your code will look like this:
    <pre>
    if (has_action("noa_notify_on_action")){
        $args = array("product" => "Computer",
            "price"=> "$850.99"                             );

        do_action( "noa_notify_on_action","ProductConfirmation", $args);
    }
    </pre>


    You can use these %args% only in the Body of the message.

    * Send Notification to Application Specific Recipients</h3>

    If the recipient needs to be specified by the application, use the keyword "recipients" in the arguments array. 
        if (has_action("noa_notify_on_action")){
             $args = array(                                      "recipients" => array("john@gmail.com","giulia@yahoo.com"),
                                 "product" => "Computer",
                                 "price"=> "$850.99"                    
                                );

                         do_action( "noa_notify_on_action","ProductConfirmation", $args);
                        }
                        </pre>

    This will send the Notification Type template to John and Giulia\'s emails.
    ```

## Instal·lació

Installation of the plugin is simple, please find us on worpress.org
 Upload notify-
on-action.php to the /wp-content/plugins/ directory Activate the plugin Click on
the ‘Settings’ link on the Plugin page Start using the plugin

## PMF

None so far

## Ressenyes

No hi ha ressenyes per a aquesta extensió.

## Col·laboradors i desenvolupadors

«Plugin Name: Notify On Action» és programari de codi obert. La següent gent ha 
col·laborat en aquesta extensió.

Col·laboradors

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

[Traduïu «Plugin Name: Notify On Action» a la vostra llengua.](https://translate.wordpress.org/projects/wp-plugins/notify-on-action)

### Interessats en el desenvolupament?

[Navegueu pel codi](https://plugins.trac.wordpress.org/browser/notify-on-action/),
baixeu-vos el [repositori SVN](https://plugins.svn.wordpress.org/notify-on-action/),
o subscriviu-vos al [registre de desenvolupament](https://plugins.trac.wordpress.org/log/notify-on-action/)
per [fisl de subscripció RSS](https://plugins.trac.wordpress.org/log/notify-on-action/?limit=100&mode=stop_on_copy&format=rss).

## Registre de canvis

v.10 – Notify on Action First Release

## Meta

 *  Versió **1.0.0**
 *  Darrera actualització **fa 15 anys**
 *  Instal·lacions actives **10+**
 *  Versió del WordPress ** 3.1 o posterior **
 *  Provada fins a **3.2.1**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/notify-on-action/)
 * Etiquetes
 * [alerts](https://ca.wordpress.org/plugins/tags/alerts/)[email](https://ca.wordpress.org/plugins/tags/email/)
   [events](https://ca.wordpress.org/plugins/tags/events/)[notification](https://ca.wordpress.org/plugins/tags/notification/)
 *  [Vista avançada](https://ca.wordpress.org/plugins/notify-on-action/advanced/)

## Valoracions

Encara no s'ha enviat cap ressenya.

[La vostra ressenya](https://wordpress.org/support/plugin/notify-on-action/reviews/#new-post)

[Visualitza totes les ressenyes](https://wordpress.org/support/plugin/notify-on-action/reviews/)

## Col·laboradors

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

## Suport

Teniu quelcom a dir? Necessiteu ajuda?

 [Visualitza els fòrums de suport](https://wordpress.org/support/plugin/notify-on-action/)

## Feu una donació

Voleu ajudar a què l’extensió millori?

 [ Feu una donació a aquesta extensió ](http://Paypal/luciana123_2002)