Send an email notification to the organizer when a event is approved

Send an email notification to the organizer when a event is approved

It will be very helpful in communication strategies if you will send an email notification to organizers once their event is approved.

Following the below steps will help you to send an email notification to the organizer when an event is approved:

Send an email notification steps:

  1. Open your child theme.
  2. Add the below code to functions.php file:
  1. function send_email_notification_to_organizer($post_id) {
  2.    $post = get_post($post_id);
  3.    $author = get_userdata($post->post_author);
  4.    $message = "
  5.       Hi ".$author->display_name.",
  6.       Your listing, ".$post->post_title." has just been approved at ".get_permalink( $post_id ).".
  7.    ";
  8.    wp_mail($author->user_email, "Your event listing got published!", $message);
  9.     }
  10.    add_action('publish_event_listing', 'send_email_notification_to_organizer');
  1. You can customize the message easily.

Use a plugin such as Post Status Notifier Lite.


    • Related Articles

    • How To Install WP Event Manager Add ons

      WP Event Manager offers a huge number of addons that help you strengthen your WordPress site with some amazing and very useful event management features and functionalities. While installing a premium addon, you need to ensure that you already have ...
    • Contact Organizer

      The Contact Organizer plugin works as a bridge between the event organizers and attendees. Users can create a Contact Organizer form with the plugin through which attendees can directly get in touch with the organizer. Installing the plugin The ...
    • Emails

      The Emails plugin is used to notify organizers/ admins through emails whenever an event is submitted, approved or expired. As a user, you have the right to create your own email templates that will be sent to the organizer. Installing the plugin The ...
    • Event Alerts

      The Alert plugin lets the registered users on your site create Event Alerts on a daily, weekly or fortnightly basis depending on popular searches with keywords, location or categories. Installing The Plugin The installation process is the same for ...
    • Event Tag snippets

      The Event Tags in WP Event Manager are designed to simplify the process of searching events. It allows users to search for events quickly with targeted keywords. Event Tags can be customized with the help of below mentioned Event Tag snippet. Here ...