private function set_args()
 {
     if ($this->notification && !is_array($this->notification->args)) {
         $this->notification->args = wp_parse_args(urldecode($this->notification->args));
         $this->notification->is_unread = $this->notification->is_unread == 'unread_notification' ? true : false;
         $this->notification->content = ap_sprintf_assoc(ap_get_notification_title($this->notification->type, $this->notification->args), $this->notification->args);
         $this->notification->icon = ap_get_notification_icon($this->notification->type);
     }
 }
 private function set_args()
 {
     if ($this->notification && !is_array($this->notification->args)) {
         $this->notification->args = wp_parse_args(urldecode($this->notification->args));
         $this->notification->is_unread = $this->notification->is_unread == 'unread_notification' ? true : false;
         $this->notification->content = ap_sprintf_assoc(ap_get_notification_title($this->notification->type, $this->notification->args), $this->notification->args);
         $this->notification->icon = ap_get_notification_icon($this->notification->type);
         if (isset($this->notification->args['permalink'])) {
             $this->notification->args['permalink'] = add_query_arg(array('ap_notification_read' => $this->id()), $this->notification->args['permalink']);
         }
     }
 }