Support

Home Forums Event Espresso Premium EE4 create post with event

EE4 create post with event

Posted: December 29, 2015 at 11:12 am


k9barry

December 29, 2015 at 11:12 am

Is it possible to create a post at the time an event is created and/or edited. I want to use the post to automatically email users with mailpoet plugin. I have added the filter-events-to-posts.php plugin filter to my site and this shows me the event expresso event in the post area but as this is a filter there is not an actual post created. I have looked and it appears there is a setting in EE3 to do this but I do not see something similar in EE4


Lorenzo Orlando Caum

  • Support Staff

December 29, 2015 at 11:58 am

Hello,

Event Espresso 4 are custom post types (https://codex.wordpress.org/Post_Types#Custom_Post_Types).

Could you check with MailPoet support to see if custom post types are supported?


Lorenzo


Josh

  • Support Staff

December 29, 2015 at 12:10 pm

Here’s a bit more information on why MailPoet is not getting the Events post type. In Mailpoet’s wp_tools.php file, in the get_post_types() method, it’s set up to return an array that meet these specs:

'public'   => true,
'_builtin' => false,
'show_in_menu'=>true,
'show_ui'=>true,

It turns out that Event Espresso’s events post registers show_in_menu and show_ui to false. If Mailpoet can change the specs or add a filter to allow inclusion of additional post types that don’t meet the specs, Event Espresso event posts can be included in the Mailpoet post type list.


k9barry

December 30, 2015 at 12:21 pm

Confirmed: Thank you both Josh and Lorenzo. Changing the `’show_in_menu’=>true,
‘show_ui’=>true,` both to false allows mailpoet to select events from event expresso.


Josh

  • Support Staff

December 30, 2015 at 3:09 pm

You’ll have a better time if MailPoet can add a filter hook to allow the settings to be filtered via a custom function. Otherwise your changes will break on the next update of the MailPoet plugin.

The support post ‘EE4 create post with event’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso