• cashman180

    (@cashman180)


    Hi, I am sure someone else has wanted to do this but I have not been able to find a solution.

    I have a few user roles, let’s say Administrator, Contributor, Author and Subscriber.
    What I want to do with Subscribe2 is have it so when a new article is posted to the Category ‘Internal’ that a notification is sent to all users in both Administrator and Author roles and when a post is made to the category ‘External’ notification is sent to all Authors and Contributors.

    Any guidance would be SOOO appreciated! Thanks in advance for your time 🙂

    https://wordpress.org/plugins/subscribe2/

Viewing 3 replies - 1 through 3 (of 3 total)
  • @cashman180

    This is possible using the API of the Subscribe2 plugin. You would need to use the following 4 hooks:

    s2_send_plain_excerpt_subscribers
    s2_send_plain_fullcontent_subscribers
    s2_send_html_excerpt_subscribers
    s2_send_html_fullcontent_subscribers

    As documented here:
    https://subscribe2.wordpress.com/support/api/

    The example code there shows hoe to collect users by role and you can then filter based on the category and only send to some of your users.

    Just to confirm… Using the API, could we give public subscribers the ability to subscribe to receive notifications when a post is made to a specific category?

    @middlemountain

    If you mean can you use the API to allow individual subscribers to select what categories they get emails for – no.

    If you mean can you limit what emails are sent bad on category – you can do this already in the plugin settings using Excluded categories.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Subscribe specific roles to specific category’ is closed to new replies.