Send an ermal to all users after a new event is submitted

WordPress Event Management, Calendars & Registration Forums General Question Send an ermal to all users after a new event is submitted

This topic contains 7 replies, has 2 voices, and was last updated by  Olaf Lederer 8 years ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #26439

    Hi,

    how to send an email message to all users or subscribers after a new event is submitted?
    This is for all events submitted via the backend and also the frontend.

    Is there btw. an option to subscribe to different categories?

    Olaf Lederer
    #26450

    Hi Olaf,

    There is no functionality whereby the user can ‘subscribe’ to notifications of new events.

    Assuming you have have that functionality already, then the most reliable way of getting events which have just been published is to use the following:

    add_action( 'transition_post_status', function( $new_status, $old_status $post ) {
        if ( 'publish' !== $new_status ) {
           return;
        }
    
        if ( 'draft' !== $old_status && 'new' !== $old_status ) {
           return;
        }
    
         if ( 'event' !== $post->post_type ) {
           return;
        }
    
        // newly published event 
    }, 10, 3 );
    
    Stephen Harris
    #26470

    HI Stephen,

    I used a similar function with the old events plugin we used. We don’t like this situation because it’s not very comfortable.
    You say, there is currently no function that is able to send out a new event notification to all users?

    Olaf Lederer
    #26472

    Hi Olaf,

    That’s correct. Although if you needed to trigger an e-mail to users once an event has been published you could use the above code, retrieve a list of users and e-mail them using wp_mail().

    Stephen Harris
    #26473

    Hi Stephen,

    this notification mail is a very important feature. According the information on your website it looks like your pro plugin offers this feature (not for 100%).
    I hope you will consider a refund (pro and FES extension) since we can’t use the plugin for our case this way.
    Thanks

    Olaf Lederer
    #26474

    Hi Olaf,

    Pro allows users to purchase tickets for events. It also states that you can e-mail attendees. No where does it suggest that it provides a subscription/notification for newly published events.

    Stephen Harris
    #26476

    Right the notification mail is a bit different. Anyway we can’t use the plugin this way.
    Please provide a refund. Do you need anything else from me?

    Olaf Lederer
    #26505

    Hi,

    forget my question regarding the refund. We will use a RSS campaign to send out notifications.

    Olaf Lederer
Viewing 8 posts - 1 through 8 (of 8 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.