WordPress.org

Ready to get started?Download WordPress

Forums

Notifly
Does Notifly work for custom post types? (3 posts)

  1. Dana
    Member
    Posted 3 years ago #

    Can I use notifly for a custom post type and not the regular post taxonomy? If so, is there any documentation on that?

    Thanks!

    http://wordpress.org/extend/plugins/notifly/

  2. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 3 years ago #

    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
    }
  3. Dana
    Member
    Posted 3 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags