public static function add_notice($notice_text = '', $type = 'updated') { $notice = new self(); $notice->notice_text = $notice_text; $notice->notice_type = $type; $notice->_add_notice(); }