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
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
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
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
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
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
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
Hi,
forget my question regarding the refund. We will use a RSS campaign to send out notifications.

Olaf Lederer