public function __construct($args) { parent::__construct($args); }
/** * Registers each setting to the main group, adds validation function on save */ public function register_settings() { static $previous_option_settings_db_name; //Update the current unique id, then register settings register_setting($this->option_group_page_name, $this->get_option_settings_db_name(), array($this, 'settings_input_validate_and_save')); //calls the abstract function - particular to each instance of this class //Save the name of the settings for the uninstaller if ($previous_option_settings_db_name != $this->get_option_settings_db_name()) { My_Plugin_Installer::register_uninstall_db_name($this->get_option_settings_db_name()); $previous_option_settings_db_name = $this->get_option_settings_db_name(); } }