|
|
@@ -79,7 +79,10 @@ class Make_Endpoint_For extends WP_REST_Controller {
|
|
79
|
79
|
$filtered[hero] = get_post_meta( $item->ID, 'hero_header', true );
|
|
80
|
80
|
|
|
81
|
81
|
$filtered[relatedto] = p2p_related_to( $item->ID, $item->post_type );
|
|
82
|
|
- $filtered[content] = $item->post_content;
|
|
|
82
|
+
|
|
|
83
|
+ $content = $item->post_content;
|
|
|
84
|
+ $content = apply_filters('the_content', $content);
|
|
|
85
|
+ $filtered[content] = str_replace(']]>', ']]>', $content);
|
|
83
|
86
|
|
|
84
|
87
|
if($item->post_type === 'episode') $filtered[credits] = get_post_meta( $item->ID, 'credits', true );
|
|
85
|
88
|
|