CustomOrdersTableController::get_settings_sections()privateWC 1.0

Get the settings sections for the "Advanced" tab, with a "Custom data stores" section added if appropriate.

{} It's a method of the class: CustomOrdersTableController{}

No Hooks.


Array. The updated settings sections array.


// private - for code of main (parent) class only
$result = $this->get_settings_sections( $sections ): array;
$sections(array) (required)
The original settings sections array.

Code of CustomOrdersTableController::get_settings_sections() WC 6.6.1

private function get_settings_sections( array $sections ): array {
	if ( ! $this->is_feature_visible() ) {
		return $sections;

	$sections['custom_data_stores'] = __( 'Custom data stores', 'woocommerce' );

	return $sections;