Fragen\GitHub_Updater\Settings::update_settings PHP Метод

update_settings() публичный Метод

Update settings for single site or network activated.
public update_settings ( )
    public function update_settings()
    {
        if (isset($_POST['option_page'])) {
            if ('github_updater' === $_POST['option_page']) {
                $options = $this->filter_options();
                update_site_option('github_updater', self::sanitize($options));
            }
            if ('github_updater_remote_management' === $_POST['option_page']) {
                update_site_option('github_updater_remote_management', (array) self::sanitize($_POST['github_updater_remote_management']));
            }
        }
        $this->redirect_on_save();
    }