fix response filter name

This commit is contained in:
Jacson Passold 2018-03-27 12:43:07 -03:00
parent fc74e72dd9
commit d2f042d775
1 changed files with 1 additions and 1 deletions

View File

@ -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);
} }
/** /**