diff --git a/includes/class-settings.php b/includes/class-settings.php index 04f8c14..9fa8e0e 100644 --- a/includes/class-settings.php +++ b/includes/class-settings.php @@ -133,8 +133,14 @@ class Settings { // Output settings page - public function render():void { + private function load_options():bool { + if (isset($this->options) && is_array($this->options)) return false; $this->options = get_option($this->get_option_group()); + return true; + } + + public function render():void { + $this->load_options(); echo '