WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WC_Settings_Shipping::get_sections() public WC 1.0

Get sections.

Это метод класса: WC_Settings_Shipping{}

Хуки из метода
Возвращает

Массив.

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

$WC_Settings_Shipping = new WC_Settings_Shipping();
$WC_Settings_Shipping->get_sections();

Код WC_Settings_Shipping::get_sections() WC 4.5.2

woocommerce/includes/admin/settings/class-wc-settings-shipping.php
<?php
public function get_sections() {
	$sections = array(
		''        => __( 'Shipping zones', 'woocommerce' ),
		'options' => __( 'Shipping options', 'woocommerce' ),
		'classes' => __( 'Shipping classes', 'woocommerce' ),
	);

	if ( ! Constants::is_defined( 'WC_INSTALLING' ) ) {
		// Load shipping methods so we can show any global options they may have.
		$shipping_methods = WC()->shipping()->load_shipping_methods();

		foreach ( $shipping_methods as $method ) {
			if ( ! $method->has_settings() ) {
				continue;
			}
			$title                                 = empty( $method->method_title ) ? ucfirst( $method->id ) : $method->method_title;
			$sections[ strtolower( $method->id ) ] = esc_html( $title );
		}
	}

	return apply_filters( 'woocommerce_get_sections_' . $this->id, $sections );
}