WC_Settings_Advanced::get_settings_for_legacy_api_section
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.
Method of the class: WC_Settings_Advanced{}
Hooks from the method
Returns
Array.
Usage
// protected - for code of main (parent) or child class $result = $this->get_settings_for_legacy_api_section();
WC_Settings_Advanced::get_settings_for_legacy_api_section() WC Settings Advanced::get settings for legacy api section code WC 11.0.1
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() );
}