@@ -80,6 +80,9 @@ class Make_Endpoint_For extends WP_REST_Controller {
$filtered[relatedto] = p2p_related_to( $item->ID, $item->post_type );
$filtered[content] = $item->post_content;
+
+ if($item->post_type === 'episode') $filtered[credits] = get_post_meta( $item->ID, 'credits', true );
$collection[$item->ID] = $filtered;
}
wp_reset_postdata();