option, 0) >= time())) return; require_once ACFBS_PATH . 'resources/components/notices/thanks.php'; } public function hideAdminNotice() { $isPermanent = isset($_POST['is_permanently']) && $_POST['is_permanently']; $expires = strtotime($isPermanent ? '+10 years' : '+ 1 month'); $this->saveOption($expires); } public function saveOption($value) { if (get_option($this->option, false) !== false) update_option($this->option, $value); else add_option($this->option, $value); } }