public function save() { $key = $this->generate_key(); if (!empty($this->data)) { update_site_option($key, $this->data); } return $this; }