Automattic\WooCommerce\Admin\Features\Settings
Transformer::start_checkbox_group
Start a new checkbox group.
Method of the class: Transformer{}
No Hooks.
Returns
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() Transformer::start checkbox group code WC 10.5.0
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 );
}