WordPress at Your Fingertips
function is not described

WC_Settings_Advanced::get_settings_for_legacy_api_section() protected WC 1.0

Get settings for the legacy API section.

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

Hooks from the method

Return

Array.

Usage

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

Code of WC_Settings_Advanced::get_settings_for_legacy_api_section() WC 5.9.0

protected function get_settings_for_legacy_api_section() {
	$settings =
		array(
			array(
				'title' => '',
				'type'  => 'title',
				'desc'  => '',
				'id'    => 'legacy_api_options',
			),
			array(
				'title'   => __( 'Legacy API', 'woocommerce' ),
				'desc'    => __( 'Enable the legacy REST API', 'woocommerce' ),
				'id'      => 'woocommerce_api_enabled',
				'type'    => 'checkbox',
				'default' => 'no',
			),
			array(
				'type' => 'sectionend',
				'id'   => 'legacy_api_options',
			),
		);

	return apply_filters( 'woocommerce_settings_rest_api', $settings );
}