options_group_slug = $options_group_slug; $this->section_slug = $section_slug; $this->title = $title; $this->load_dependencies(); $this->add_settings_groups(get_option( $this->options_group_slug )); $this->load_options_group(); } protected function load_dependencies(): void { require_once plugin_dir_path( __DIR__ ) . 'settings/class-setting.php'; // Require settings groups. //require_once plugin_dir_path( __DIR__ ) . 'settings/custom-css/...'; } protected function add_settings_groups(): void { $this->settings_groups = array ( // Add settings groups. //...::GROUP_ID => new ...($this->options_group_slug, $this->section_slug), ); } }