Skip to content

Commit

Permalink
replace get post type with distributable one
Browse files Browse the repository at this point in the history
  • Loading branch information
mehul0810 committed Jul 13, 2024
1 parent 5774e61 commit a03c26f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions includes/rest-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -586,12 +586,7 @@ function distributor_meta() {
* Check user permissions for available post types
*/
function check_post_types_permissions() {
$types = get_post_types(
array(
'show_in_rest' => true,
),
'objects'
);
$types = Utils\distributable_post_types( 'objects' );

$response = array(
'can_get' => array(),
Expand Down

0 comments on commit a03c26f

Please sign in to comment.