Plugin Directory

Changeset 1407127


Ignore:
Timestamp:
04/29/2016 07:12:28 AM (10 years ago)
Author:
aheadzen
Message:

1.0.6

Location:
bp-unsubscribe/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • bp-unsubscribe/trunk/bp_unsubscribe.php

    r1382948 r1407127  
    44Plugin URI: http://www.aheadzen.com
    55Description: Unsubscribe plugin to stop emails coming from buddypress.
    6 Version: 1.0.5
     6Version: 1.0.6
    77Author: Ask Oracle Team
    88Author URI: http://ask-oracle.com/
     
    4242       
    4343        add_filter('az_voter_mail_content',array($this,'az_messages_notification_voter_mail_content'),99,4);
     44       
     45        add_filter('bp_follow_notification_message',array($this,'az_bp_follow_notification_message'),99,4);
     46       
    4447       
    4548        /** New filter for buddypress 2.5+ **/
     
    236239    }
    237240   
    238    
     241    public function az_bp_follow_notification_message($message, $follower_name, $follower_link, $r){
     242        $settings_link = bp_core_get_user_domain( $r['leader_id'] ) . BP_SETTINGS_SLUG . '/notifications/';
     243        $message .= $this->get_unsubscribe_link($settings_link);
     244        return $message;
     245    }
    239246   
    240247    /*******************************
  • bp-unsubscribe/trunk/readme.txt

    r1382948 r1407127  
    9393* Administrator can edit other profile's email notification.
    9494
     95= 1.0.6 =
     96* "BuddyPress Follow" (Plugin URI: http://wordpress.org/extend/plugins/buddypress-followers)
     97    -- email notificaiton edit to add unsubscribe link.
    9598
     99
     100
     101
Note: See TracChangeset for help on using the changeset viewer.