fix response filter name
This commit is contained in:
parent
fc74e72dd9
commit
d2f042d775
|
@ -123,7 +123,7 @@ class TAINACAN_REST_Item_Metadata_Controller extends TAINACAN_REST_Controller {
|
||||||
$prepared_item[$index-1]['field']['field_type_object'] = $this->prepare_item_for_response( $item_metadata->get_field()->get_field_type_object(), $request);
|
$prepared_item[$index-1]['field']['field_type_object'] = $this->prepare_item_for_response( $item_metadata->get_field()->get_field_type_object(), $request);
|
||||||
}
|
}
|
||||||
|
|
||||||
return new WP_REST_Response(apply_filters('tainacan-get-response', $prepared_item, $request), 200);
|
return new WP_REST_Response(apply_filters('tainacan-rest-response', $prepared_item, $request), 200);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue