'.strtoupper($type).':
'.$notification.'
'; } } self::deleteNotification($type); } } } protected static function deleteNotification($name){ return delete_option(WTSEC_PLUGIN_PREFIX.$name); } public static function setNotification($type,$value){ if($notifications = get_option(WTSEC_PLUGIN_PREFIX.$type)){ $notifications[] = $value; update_option(WTSEC_PLUGIN_PREFIX.$type,$notifications); }else{ update_option(WTSEC_PLUGIN_PREFIX.$type,[$value]); } } }