• Hi! We have Membership site with BuddyBoss Platform and MemberPress and this plugin sends daily digest emails to group subscribers. Is there a action/filter hook on this plugin which could be used on our custom theme side to check if a users membership is active or not and only send the daily digest email when user has active membership.

    I was bit looking the source code of plugin and maybe bp_ges_send_digest_to_user? But I don’t find any documentation on this.

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

    (@boonebgorges)

    Yes, bp_ges_send_digest_to_user is a good hook to use. Something like this:

    add_filter(
      'bp_ges_send_digest_to_user',
      function( $send, $user_id ) {
        // This is where you'll use your custom logic to determine "active" status
        $user_is_active = ...
        if ( ! $user_is_active ) {
          return false;
        }
    
        return $send;
      },
      10,
      2
    );
Viewing 1 replies (of 1 total)
  • The topic ‘Is it possible to exclude users who are non-active / expired?’ is closed to new replies.