classes/Tools/ToolBase.php
protected function registerSettingsSection($slug,$title,$description)
    {
        $this->settingSections[$slug]=[
            'title'=>$title,
            'description'=>$description,
            'fields'=>[]
        ];

        add_settings_section($slug,$title,[$this,'renderSettingsSection'],$this->options_page);
    }
protected function registerSettingsSection($slug,$title,$description)
    {
        $this->settingSections[$slug]=[
            'title'=>$title,
            'description'=>$description,
            'fields'=>[]
        ];

        add_settings_section($slug,$title,[$this,'renderSettingsSection'],$this->options_page);
    }
protected function registerSettingsSection ( $ slug , $ title , $ description ) { $ this -> settingSections [ $ slug ] = [ 'title' => $ title , 'description' => $ description , 'fields' => [ ] ] ; add_settings_section ( $ slug , $ title , [ $ this , 'renderSettingsSection' ] , $ this -> options_page ) ; }
Registers a settings section
@param $slug
@param $title
@param $description
Registers a settings section