get_section() being used in WordPress. what is this function and how can i utilize it for theme development?
this is how it's being used :
c27()->get_section('table-block', [ 'icon' => $this->get_settings('the_icon'), 'icon_style' => $this->get_settings('the_icon_style'), 'title' => $this->get_settings('the_title'), 'rows' => $this->get_settings('the_rows'), ]);
If you check the code reference entry for
get_section(), you can see its description:
Retrieve a customize section.
Sections are UI containers for Customizer controls. While you can add custom controls to the core sections, if you have more than a few options you may want to add one or more custom sections. Use the
add_sectionmethod of the WP_Customize_Manager object to add a new section: