$section ) { $allowed_tabs[ $id ] = array( 'title' => $section['label'], 'page' => $section['page'], ); } if ( ! isset( $allowed_tabs[ $tab ] ) ) { $tab = 'prerequisites'; } $this->vars['allowed_tabs'] = $allowed_tabs; $this->vars['active_tab'] = $tab; $this->vars['page_slug'] = $page_slug; parent::render(); } public function title() { return __( 'Afroit Messaging Workflows for WooCommerce — API settings', 'afroit-messaging-workflows' ); } protected function getViewPath() { return AFROMEWO_PLUGIN_DIR . 'includes/Admin/Settings/Views/settings.php'; } }