Support » Plugin: Notifly » Does Notifly work for custom post types?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Samuel Wood (Otto)

    (@otto42)

    Notifly will work with any custom post types that have their ‘public’ flag set to true.

    If you want to decide more granularly, you can use the trigger_notifly_post filter. It will get the post object as the second argument. It must return true or false. True means to send the email, false means to not send it.

    add_filter('trigger_notifly_post','your_function',10,2);
    function your_function($trigger, $post) {
    // decide based on post whether or not to send email
    return true; // true = send email
    }

    Awesome, thanks!

    What you are referring is filter by post type then? So if I only want post types and not the main posts I can do that?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Does Notifly work for custom post types?’ is closed to new replies.