Adding ‘active’ class to custom taxonomies using walker in functions.php

Changing current_page_item to current-menu-item solved the problem because these were taxonomies and not pages.

Whats the difference between current_page_item and current-menu-item

tech