WC_Settings_Advanced::get_settings_for_legacy_api_section()
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 Settings Advanced::get settings for legacy api section WC 6.7.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 ); }