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.
Метод класса: CustomOrdersTableController{}
Хуков нет.
Возвращает
Массив
. The updated settings sections array.
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_settings_sections( $sections ): array;
- $sections(массив) (обязательный)
- The original settings sections array.
Код CustomOrdersTableController::get_settings_sections() CustomOrdersTableController::get settings sections WC 7.3.0
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; }