Viewing 15 replies - 1 through 15 (of 21 total)
  • @webbsndo,

    Yes, this is possible. You need to use some of the hooks available in subscribe to as documented at:
    https://subscribe2.wordpress.com/support/api/

    In this case the hooks you need are as follows:
    s2_send_plain_excerpt_subscribers
    s2_send_plain_fullcontent_subscribers
    s2_send_html_excerpt_subscribers
    s2_send_html_fullcontent_subscribers

    Thread Starter webbando

    (@webbando)

    Thanks for your reply.. Can you show me the code that I need to modify on subscribe2?

    @webbsndo,

    You don’t need to change any code in Subscribe2, you use the filters above to create your own site specific plugin to alter Subscribe2’s default behaviour.

    If you’ve never created a plugin before try Pulginception, it’s great for creating the correct header information and then you can just append the code at the end of the file.

    Thread Starter webbando

    (@webbando)

    For me is too hard to crete a new plugin.. It’s better if is possible to modify the Subcribe2.. Do you know where I have to modify?

    @webbando,

    If you insist but bear the following in mind:
    1/ Any modifications to core files are lost when you update the plugin
    2/ Subscribe2 does not currently contain any filtering on role so you will be adding new code rather than simply changing something.
    3/ Creating a plugin is not hard – especially if you use Pluginception

    but if you still want to go ahead you will need to add user role searching to the get_registered() function in the classes/class-s2-core.php file.

    Thread Starter webbando

    (@webbando)

    What means “to add user role searching to the get_registered() function”?

    @webbando,

    You originally asked to be able to send just to “admin” or just to “editor” – those are ‘user roles’ so you need to modify that function by adding to it so that it can also search for a user role.

    If you don’t think you can create a plugin I don’t think you will find that easy – it isn’t just a case of changing a little bit of the code, it’s a case of writing new code, adding to an existing function.

    Thread Starter webbando

    (@webbando)

    Don’t you have the ready code? Is it easy?

    @webbando,

    I only have the example code in the page linked above. It’s not too difficult to modify if you have a little PHP and WordPress knowledge.

    Thread Starter webbando

    (@webbando)

    I’m not able… can you help me if it is simple?

    @webbando,

    The only way I can make it simpler for you is by actually doing it. Do you want me to quote you a price?

    Thread Starter webbando

    (@webbando)

    what price you need?

    @webbando,

    Contact me first and we can discuss what you need and I’ll have an idea how much work will be involved.

    Hi Matt,

    Sending emails by registered user roles is what I require as well.

    The contact link doesnt seem to be working for me. Lets talk quotes, please.

    Cheers.

    @thainnoel,

    Strange, I’ve just tested the contact form myself and it worked perfectly for me.

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘e-mail to specified role users’ is closed to new replies.