Adds autogenerate doc

This commit is contained in:
weryques 2018-03-13 14:35:17 -03:00
parent 0bf7d0054b
commit 21eee2452b
1 changed files with 6 additions and 0 deletions

View File

@ -24,6 +24,12 @@ class TAINACAN_REST_Filter_Types_Controller extends TAINACAN_REST_Controller {
);
}
/**
* @param mixed $item
* @param WP_REST_Request $request
*
* @return mixed|WP_Error|WP_REST_Response
*/
public function prepare_item_for_response( $item, $request ) {
$name = "\Tainacan\Filter_Types\\$item";
$filter_type = new $name();