filter item response
This commit is contained in:
parent
e744fc4635
commit
dd9e5c8ce0
|
@ -147,7 +147,7 @@ class TAINACAN_REST_Items_Controller extends TAINACAN_REST_Controller {
|
|||
|
||||
$response = $this->prepare_item_for_response($item, $request);
|
||||
|
||||
return new WP_REST_Response($response, 200);
|
||||
return new WP_REST_Response(apply_filters('tainacan-rest-response', $response, $request), 200);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue