Subscribe by email - notify of products in marketpress

Hi!

Just wondering if you can change the post type for these notifications to be products from market press instead of posts?

Thanks!

  • Philip John
    • DEV MAN’s Apprentice

    Hiya,

    Sure, you just need to change line 278 of subscribe-by-email.php from
    if ($post->post_type == 'post'){

    to
    if ($post->post_type == 'my-custom-post-type'){

    where my-custom-post-type is the name of your post type.

    Don't forget that such a change will need to be re-done everytime you upgrade to a newer version of the plugin.

    Phil

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.