word press bilmem ama şu şekilde yapabilirsiniz

foreach ($terms as $term)
{
$uur++; //bir sayac koyarsınız

if ($uur==1) { //eğer bu sayaç 1 se yani ilk döngüde ne yazıyorsa active olanı yazar
echo '<a class="active" href="' . get_term_link( $term->slug, $term->taxonomy ) . '" data-filter="'.$term->slug.'" title="' . sprintf(__('View all Gallery Items tagged %s', 'framework'), $term->name) . '">' . $term->name . '</a>';
}


if ($uur!=1) { //1 değilse yani diğer sonuçları yazıyorsa normal class la yazar
echo '<a class="pp-btn" href="' . get_term_link( $term->slug, $term->taxonomy ) . '" data-filter="'.$term->slug.'" title="' . sprintf(__('View all Gallery Items tagged %s', 'framework'), $term->name) . '">' . $term->name . '</a>';
}




}