WC_Settings_Page::get_settings_for_section_core
Get the settings for a given section. This method is invoked from 'get_settings_for_section' when no 'get_settings_for_{current_section}_section' method exists in the class.
When overriding, note that the 'woocommerce_get_settings_' filter must NOT be triggered, as this is already done by 'get_settings_for_section'.
Method of the class: WC_Settings_Page{}
No Hooks.
Returns
Array. Settings array, each item being an associative array representing a setting.
Usage
// protected - for code of main (parent) or child class $result = $this->get_settings_for_section_core( $section_id );
- $section_id(string) (required)
- The section name to get the settings for.
WC_Settings_Page::get_settings_for_section_core() WC Settings Page::get settings for section core code WC 10.9.3
protected function get_settings_for_section_core( $section_id ) {
$registry = $this->get_settings_section_registry();
$registered_section = $registry ? $registry->get_registered( $this->id, (string) $section_id ) : null;
return $registered_section ? $registered_section->get_settings( $this ) : array();
}