static function add_subscribe_event($sid, $lid, $type) { global $wpdb; /* $event_type = 'unknown_event_type'; if( is_numeric($type) ){ if($type == 2){ $event_type = 'subscribed'; }elseif($type == 3){ $event_type = 'unsubscribed'; }elseif($type==4){ $event_type = 'bounce'; }elseif($type==1){ $event_type = 'optin'; } } $event_data = array( 'eventdate'=>SendPress_Data::gmdate(), 'subscriberID' => $sid, 'listID'=>$lid, 'type'=>$event_type ); $wpdb->insert( SendPress_Data::subscriber_event_table(), $event_data); */ //if instant, check if we need a notification and send one SendPress_Notifications_Manager::send_instant_notification($event_data); }