current_section = $current_section; $this->init_menu_items(); } private function init_menu_items(): void { $this->menu_items = array( 'overview' => array( 'title' => __( 'Overview', '1platform-content-ai' ), 'icon' => 'dashicons-chart-area', ), 'billing-history' => array( 'title' => __( 'Billing History', '1platform-content-ai' ), 'icon' => 'dashicons-list-view', ), ); } public function render(): void { ?> current_section === $slug; $item_class = $is_active ? 'is-active' : ''; $url = add_query_arg( 'section', $slug, admin_url( 'admin.php?page=contai-billing' ) ); ?>