feat: move common functionality to generic classes

This commit is contained in:
Ben Goldsworthy 2021-08-05 15:52:28 +01:00
parent 2e27f6e449
commit c0628bc7e3
7 changed files with 92 additions and 172 deletions

View file

@ -55,7 +55,9 @@ abstract class SettingsSection {
*/
protected array $settings_groups;
protected abstract function load_dependencies(): void;
protected function load_dependencies(): void {
require_once plugin_dir_path( __DIR__ ) . 'settings/class-setting.php';
}
public function load_options_group(): void {
$options_group = get_option($this->options_group_slug);