add_filter("page_css_class", "add_active_to_list_pages_for_CPTs", 5, 10);
function add_active_to_list_pages_for_CPTs( $css_class, $page, $depth, $args, $current_page )
{
global $post;
static $tpage, $ancestors;
if( ! isset( $tpage ) )
$tpage = is_page() ? $post : get_closest_page();
if( ! isset( $ancestors ) )
$ancestors = array_merge( array( get_post_ancestors( $tpage->ID ) ), array( $tpage->ID ) );
if(in_array( $page->ID, $ancestors ) )
$css_class = array_merge( array( $css_class ), array( "active" ) );