From a03c26fb693c24724e72f79ca20fef340ce158ec Mon Sep 17 00:00:00 2001 From: Mehul Gohil Date: Sat, 13 Jul 2024 08:43:39 +0530 Subject: [PATCH] replace get post type with distributable one --- includes/rest-api.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/includes/rest-api.php b/includes/rest-api.php index 41dceed42..c008a18eb 100644 --- a/includes/rest-api.php +++ b/includes/rest-api.php @@ -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(),