Automattic\WooCommerce\Internal\DataStores\Orders
CustomOrdersTableController::get_settings_sections()
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.
Return
Array
. The updated settings sections array.
Usage
// 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() 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; }