WC_Settings_Advanced::get_settings_for_legacy_api_section │ protected │ WC 1.0

Get settings for the legacy API section.

The section is only registered when an extension has hooked into the woocommerce_settings_rest_api so this acts purely as an extension point — core no longer ships any settings of its own here.

Метод класса: WC_Settings_Advanced{}

Хуки из метода

Возвращает

array.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_settings_for_legacy_api_section();

Код WC_Settings_Advanced::get_settings_for_legacy_api_section() WC 11.2.2

protected function get_settings_for_legacy_api_section() {
	/**
	 * Filter the settings rendered in the Legacy API section of the Advanced settings tab.
	 *
	 * Core no longer ships any settings in this section; the section itself is only
	 * registered when at least one callback is hooked into this filter.
	 *
	 * @since 3.4.0
	 * @param array $settings Settings array. Empty by default.
	 */
	return apply_filters( 'woocommerce_settings_rest_api', array() );
}