• Resolved MdX MaxX

    (@mdx-maxx)


    I can test it later on, but a quick answer here would be great.

    Does Subscribe2 follow user roles? I have private post notifications enabled, but some users on my site won’t have read_private_posts capability. I’m hoping Subscribe2 won’t send these restricted users email notifications for private posts.

    Thanks!

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • mattyrob

    (@mattyrob)

    @mdx MaxX,

    No, it doesn’t. The default user roles in WordPress can be extended to complete support would be impossible to maintain.

    There are filter functions available when Subscribe2 collects the recipient email addresses that could allow users below a certain level to be removed. See the API documentation, in particular these filters:

    s2_send_plain_excerpt_subscribers
    s2_send_plain_fullcontent_subscribers
    s2_send_html_excerpt_subscribers
    s2_send_html_fullcontent_subscribers

    Thread Starter MdX MaxX

    (@mdx-maxx)

    Thanks for the info! I know zero php, unfortunately, so I don’t know how to even begin using those API hooks. But maybe I can figure something out.

    Thread Starter MdX MaxX

    (@mdx-maxx)

    Would you consider adding such a feature in the future just for the read capabilities? (read and read_private_posts) Would that even be possible? I imagine if anyone were to filter email recipients, it would be based on read permissions.

    mattyrob

    (@mattyrob)

    @mdx MaxX,

    I may consider that for the future but it would be difficult to implement in such a way as to satisfy all users. Some will want the email sent, others won’t. Also, it needs consideration of the different subscriber types in Subscribe2. Registered subscribers are Users in WordPress and have capabilities. Public subscribers don’t have capabilities – what to do with them?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Does Subscribe2 Obey User Roles’ is closed to new replies.