private function viewSections() { foreach ($this->view_sections as $key => $section) { if (is_numeric($key)) { View::registerHandler($section, [$this, 'wp_section_handler']); } else { View::registerHandler($key, [$this, 'wp_section_handler']); } } }