• Resolved Palijn

    (@palijn)


    Hello,
    I’m trying to get MailPoet3 to automatically send an email to subscribers when a new Event is created.
    However, in MailPoet the Events do not appear, hence no email sent.
    Browsing the support for MailPoet, I found out that if the Custom Post Type sets exclude_from_search to true , then MailPoet won’t register the CPT.

    A cursory search in the Events Manager plugin source shows that, indeed :
    in file em-posts.php :
    line 126 'exclude_from_search' => !get_option('dbem_cp_events_search_results'),
    line 172 'exclude_from_search' => true
    line 220 'exclude_from_search' => !get_option('dbem_cp_locations_search_results'),

    Is it possible to override this and set exclude_from_search to false somewhere ? What side-effects would such a change have ?

    Thanks a lot for your support,
    Regards
    Thierry

Viewing 1 replies (of 1 total)
  • Thread Starter Palijn

    (@palijn)

    Well, exploring a bit more I found out that the Events can be included in search through the Settings page. Selecting “include in WordPress search” made MailPoet suddenly aware of Events ! ??
    Sorry for the noise,
    Regards
    Thierry

Viewing 1 replies (of 1 total)
  • The topic ‘Events custom post type does not register with MailPoet’ is closed to new replies.