Automattic\WooCommerce\Admin\Features\Settings

Transformer::flush_current_checkbox_group()privateWC 1.0

Flush current checkbox group to transformed settings.

Метод класса: Transformer{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

// private - только в коде основоного (родительского) класса
$result = $this->flush_current_checkbox_group(): void;

Код Transformer::flush_current_checkbox_group() WC 9.7.1

private function flush_current_checkbox_group(): void {
	if ( is_array( $this->current_checkbox_group ) ) {
		if ( is_array( $this->current_group ) ) {
			$this->current_group = array_merge( $this->current_group, $this->current_checkbox_group );
		} else {
			$this->current_group = $this->current_checkbox_group;
		}

		$this->current_checkbox_group = null;
	}
}