Support » Plugin: BuddyPress Group Email Subscription » Limit Posts in Digest

  • Resolved Dazzerr

    (@dazzerr)


    Is there a way to limit the amount of posts sent in a digest email? For example, limit to 10 posts PER group digest, with the option to read more at the bottom?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Boone Gorges

    (@boonebgorges)

    Hi @dazzerr – It’s possible to do this, but it won’t be particularly easy.

    There’s a filter ‘ass_digest_format_item_group’ that you could use to filter the markup generated for each group’s section of a digest email. Using this, you could either modify the existing markup (DOMDocument or whatever) or you could rebuild the markup to do exactly what you want. Not extremely elegant, but possible.

    Keep in mind that, if you do something like this, the truncated items will still be deleted from the digest queue. I think this is probably want you want in this case, but it’s important to note, and there’s no easy way around it at the moment.

    If you have ideas about how this might be made easier, say with the introduction of new filters, I’d be happy to consider a patch or a pull request.

    You are right, that ain’t easy! I have no idea what you’re talking about 🙂 I guess for now I will just make sure that there are not too many posts in the first place!

    Thanks for your assistance 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.