WordPress at Your Fingertips
function is not described

WC_Settings_Tax::get_own_sections() protected WC 1.0

Get own sections.

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

No Hooks.

Return

Array.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_own_sections();

Code of WC_Settings_Tax::get_own_sections() WC 5.9.0

protected function get_own_sections() {
	$sections = array(
		''         => __( 'Tax options', 'woocommerce' ),
		'standard' => __( 'Standard rates', 'woocommerce' ),
	);

	// Get tax classes and display as links.
	$tax_classes = WC_Tax::get_tax_classes();

	foreach ( $tax_classes as $class ) {
		/* translators: $s tax rate section name */
		$sections[ sanitize_title( $class ) ] = sprintf( __( '%s rates', 'woocommerce' ), $class );
	}

	return $sections;
}