private function add_hidden_settings_sections( $subtab = [] ) {
		$subtabs   = array_keys( $this->settings_sub_tabs() );
		$hide_tabs = array_diff( $subtabs, (array) $subtab, [ 'github_updater' ] );
		if ( ! empty( $subtab ) ) {
			echo '<div id="github_updater" class="hide-github-updater-settings">';
			do_settings_sections( 'github_updater_install_settings' );
			echo '</div>';
		}
		foreach ( $hide_tabs as $hide_tab ) {
			echo '<div id="' . $hide_tab . '" class="hide-github-updater-settings">';
			do_settings_sections( 'github_updater_' . $hide_tab . '_install_settings' );
			echo '</div>';
		}
	}
private function add_hidden_settings_sections( $subtab = [] ) {
		$subtabs   = array_keys( $this->settings_sub_tabs() );
		$hide_tabs = array_diff( $subtabs, (array) $subtab, [ 'github_updater' ] );
		if ( ! empty( $subtab ) ) {
			echo '<div id="github_updater" class="hide-github-updater-settings">';
			do_settings_sections( 'github_updater_install_settings' );
			echo '</div>';
		}
		foreach ( $hide_tabs as $hide_tab ) {
			echo '<div id="' . $hide_tab . '" class="hide-github-updater-settings">';
			do_settings_sections( 'github_updater_' . $hide_tab . '_install_settings' );
			echo '</div>';
		}
	}
private function add_hidden_settings_sections ( $ subtab = [ ] ) { $ subtabs = array_keys ( $ this -> settings_sub_tabs ( ) ) ; $ hide_tabs = array_diff ( $ subtabs , ( array ) $ subtab , [ 'github_updater' ] ) ; if ( ! empty ( $ subtab ) ) { echo '<div id="github_updater" class="hide-github-updater-settings">' ; do_settings_sections ( 'github_updater_install_settings' ) ; echo '</div>' ; } foreach ( $ hide_tabs as $ hide_tab ) { echo '<div id="' . $ hide_tab . '" class="hide-github-updater-settings">' ; do_settings_sections ( 'github_updater_' . $ hide_tab . '_install_settings' ) ; echo '</div>' ; } }
Create settings sections that are hidden.
Required to preserve subtab settings during saves.

@param array $subtab Subtab to display.
Create settings sections that are hidden . Required to preserve subtab settings during saves .