Email notifications (users and admin)

Home Forums Calendar Products Events Calendar PRO Email notifications (users and admin)

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1021059
    Steve Johnson
    Participant

    We are using the Events Calendar Pro and really think it’s great. However, we would like the ability for two alerts:

    1. Alert the person who posted the event with an email when their event has been approved/posted.

    2. Alert the admin that there is a new event pending that needs to be published.

    Are there any settings or work-arounds to make this happen?

    Thanks.

    #1021264
    George
    Participant

    Hey @Steve,

    These things are possible but are unfortunately not so without custom coding 🙁

    We cannot help with custom coding but I have taken some to craft a free custom plugin for you to get you started on this – check out the code here: https://gist.github.com/ggwicz/cac1aa8265885b1440a3

    If you add the code to your theme’s functions.php file, you should be able to achieve part 1 of your goals here; i.e., users who author events for review will get an email if their event has been approved and published 🙂

    This works for me on my local testing site and I hope it works for you too!

    I’m sorry that I don’t have the extra time to suss out your second request here; however, hopefully with the existing code I shared you can piece together similar code to achieve that. It should be rather simple, and you’d just need to use similar principles as the code I shared – but instead of dynamically generating the author email, you can just hard-code in the email address you’d like to be notified at 🙂 (you can use also use get_bloginfo( 'admin_email' )

    To learn more about the functions involved in doing this, check out these codex pages:

    https://codex.wordpress.org/Function_Reference/wp_mail
    • https://codex.wordpress.org/Function_Reference/get_bloginfo
    • https://codex.wordpress.org/Post_Status_Transitions

    Cheers!
    George

    #1021925
    Steve Johnson
    Participant

    Appreciate the feedback.

    #1021937
    George
    Participant

    No problem Steve! I hope my code helps out and that you can take it and build some of the other features yourself. Best of luck with your site! 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Email notifications (users and admin)’ is closed to new replies.