Automattic\WooCommerce\Admin\Features\Settings

Transformer::start_checkbox_group()privateWC 1.0

Start a new checkbox group.

Method of the class: Transformer{}

No Hooks.

Return

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->start_checkbox_group( $setting ): void;
$setting(array) (required)
Setting to add.

Transformer::start_checkbox_group() code WC 9.7.1

private function start_checkbox_group( array $setting ): void {
	// If we already have an open checkbox group, flush it to settings before starting a new one.
	if ( is_array( $this->current_checkbox_group ) ) {
		$this->flush_current_checkbox_group();
	}

	$this->current_checkbox_group = array( $setting );
}