Theme.php
public function getContent($location)
    {
        do_action("before_theme_get_content");
        apply_filters("before_theme_get_content", $location);

        foreach ($this->sections as $section_data):

            # Skip if section is not in given location
            if ($section_data[1] !== $location):
                continue;
            endif;

            # Render it
            $this->renderSection($section_data[0]);

        endforeach;

        apply_filters("after_theme_get_content", $location);
        do_action("after_theme_get_content");
    }
public function getContent($location)
    {
        do_action("before_theme_get_content");
        apply_filters("before_theme_get_content", $location);

        foreach ($this->sections as $section_data):

            # Skip if section is not in given location
            if ($section_data[1] !== $location):
                continue;
            endif;

            # Render it
            $this->renderSection($section_data[0]);

        endforeach;

        apply_filters("after_theme_get_content", $location);
        do_action("after_theme_get_content");
    }
Render sections of given location inside wrapper

@param $location string Render sections on this location