Support » Plugin: MailPoet Newsletters (Previous) » Add custom status to Mailpost Posts Dropdown

  • Hi there,

    I need to retreive an “Event” Custom Post Type in the MailPoet Posts select (dropdown), but this CPT uses custom statuses (not the standard “Publish”, “draft”, “pending”, etc.).

    Is there a hook or any other way to add these custom statuses to the selector so i can easily sort these CPT items ?

    Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter J. Sébastien Teitgen

    (@jstei)

    Hi again,

    Now i have half a solution (but still not enough).
    In heplers/wp_tools.php line 259 : we have a function that returns an array of native WP statuse + a MailPoet status “Scheduled”. It would have been great if i had a filter there to add my own custom statuses, something like
    function get_post_statuses(){
    return apply_filter(
    ‘wysija_posts_statuses’,
    array_merge( get_post_statuses(), array(‘future’ => __( ‘Scheduled’, WYSIJA) )
    );
    }
    Is there any other way to do it ?
    Regards

    Thread Starter J. Sébastien Teitgen

    (@jstei)

    Oops : apply_filters() of course

    Wysija

    (@wysija)

    There isn’t, unfortunately. Check this out: https://eventcalendarnewsletter.com/docs/mailpoet-support/ it might help you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add custom status to Mailpost Posts Dropdown’ is closed to new replies.