• Best Drag & Drop Website Builder
  • Build Any Type of Website
  • Unlimited design flexibility
  • Drag & Drop Builder

Plugin Name: Notify On Action

by Luciana Bruscino

0 Ratings

Active Installations

10+

Last Update

13 years

Quality

D

Plugin Description

Description
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’,’‘, 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%)

 if (has_action("noa_notify_on_action")){
    $args = array("arg1" => "Good Morning",
          "arg2"=> "Joe Doh"                    
    );

    do_action( "noa_notify_on_action","SaluteMyFriend", $args);
}
   

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:

if (has_action("noa_notify_on_action")){
    $args = array("product" => "Computer",
        "price"=> "$850.99"                             );

    do_action( "noa_notify_on_action","ProductConfirmation", $args);
}

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

* Send Notification to Application Specific Recipients

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);
}

This will send the Notification Type template to John and Giulia’s emails.

Similar Plugins

  • Report Bug
The content on this website originates from various sources. All rights to the original content remain with the respective author. If you believe that your copyrights have been infringed by the use of content on this website, please contact us at info@plugin-guru.com. We will remove the content in question immediately.

This is the heading

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

Regular Price

Free download

Key Features

  • You will be redirected to the retailer

Collections

Create your first Collection

To create a collection, simply click on the symbol on the desired plugin.

You can see this symbol when you move the mouse over the plugin. 

Current Level

Plugin Magican

You have reached 0 views on your collections and are currently Plugin Magican. You magically help people find the right plugins and are a great asset to the community

0 of 500 views reached