Skip to:
Content
Pages
Categories
Search
Top
Bottom

small suggested patch to add filter for header of digest email

  • Avatar of sboisvert
    sboisvert
    Participant

    @sboisvert

    First thank you for the great plugin. Here is a small suggested change to enable the first line of the email sent out on digest to be edited in a non-destructive fashion.

    changing line 92-93 of bp-activity-subscription-digest.php to something like this:
    `
    $header = “

    $title ” . __(‘at’, ‘bp-ass’).” root_domain}’>$blogname

    nn”;
    $message = apply_filters(‘ass_digest_header’,$header,$title,$ass_email_css);
    `

    here it is in .patch format if it is of use to you. (I don’t see how to attach a file)

    Index: bp-activity-subscription-digest.php
    ===================================================================
    — bp-activity-subscription-digest.php (revision 10382)
    +++ bp-activity-subscription-digest.php (working copy)
    @@ -89,7 +89,8 @@
    // filter the list – can be used to sort the groups
    $group_activity_ids = apply_filters( ‘ass_digest_group_activity_ids’, @$group_activity_ids );

    - $message = “

    $title ” . __(‘at’, ‘bp-ass’).” root_domain}’>$blogname

    nn”;
    + $header = “

    $title ” . __(‘at’, ‘bp-ass’).” root_domain}’>$blogname

    nn”;
    + $message = apply_filters(‘ass_digest_header’,$header,$title,$ass_email_css);

    // loop through each group for this user
    foreach ( $group_activity_ids as $group_id => $activity_ids ) {

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

You must be logged in to reply to this topic.