Skip to content

Commit d596a77

Browse files
author
Salil Kothadia
committed
overide get_items_permissions_check
1 parent dd585e1 commit d596a77

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lib/endpoints/class-wp-rest-multiple-posttype-controller.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,17 @@ public function register_routes()
3939
));
4040
}
4141

42+
/**
43+
* Check if a given request has access to get items
44+
*
45+
* @param WP_REST_Request $request
46+
* @return boolean
47+
*/
48+
public function get_items_permissions_check($request)
49+
{
50+
return true;
51+
}
52+
4253
/**
4354
* Check if a given request has access to get items
4455
*

0 commit comments

Comments
 (0)