From 6228cf9ec86d0cfd8f27a84a973f54f7cd6479c1 Mon Sep 17 00:00:00 2001 From: Hoang Huu Date: Thu, 10 Oct 2019 09:12:36 +0700 Subject: [PATCH] Update IPI --- inc/api/v1/agency.php | 10 +++++----- inc/api/v1/agent.php | 10 +++++----- inc/api/v1/property.php | 10 +++++----- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/inc/api/v1/agency.php b/inc/api/v1/agency.php index cc816175..0e4e6cc0 100755 --- a/inc/api/v1/agency.php +++ b/inc/api/v1/agency.php @@ -80,11 +80,11 @@ class Opalestate_Agency_Api extends Opalestate_Base_API { 'callback' => [ $this, 'get_item' ], // 'permission_callback' => [ $this, 'get_item_permissions_check' ], ], - [ - 'methods' => WP_REST_Server::EDITABLE, - 'callback' => [ $this, 'update_item' ], - // 'permission_callback' => [ $this, 'update_item_permissions_check' ], - ], + // [ + // 'methods' => WP_REST_Server::EDITABLE, + // 'callback' => [ $this, 'update_item' ], + // // 'permission_callback' => [ $this, 'update_item_permissions_check' ], + // ], ] ); diff --git a/inc/api/v1/agent.php b/inc/api/v1/agent.php index 8f33cc7a..4dd28160 100755 --- a/inc/api/v1/agent.php +++ b/inc/api/v1/agent.php @@ -71,11 +71,11 @@ class Opalestate_Agent_Api extends Opalestate_Base_API { 'callback' => [ $this, 'get_item' ], // 'permission_callback' => [ $this, 'get_item_permissions_check' ], ], - [ - 'methods' => WP_REST_Server::EDITABLE, - 'callback' => [ $this, 'update_item' ], - // 'permission_callback' => [ $this, 'update_item_permissions_check' ], - ], + // [ + // 'methods' => WP_REST_Server::EDITABLE, + // 'callback' => [ $this, 'update_item' ], + // // 'permission_callback' => [ $this, 'update_item_permissions_check' ], + // ], ] ); diff --git a/inc/api/v1/property.php b/inc/api/v1/property.php index c54e8415..3fdc07f9 100644 --- a/inc/api/v1/property.php +++ b/inc/api/v1/property.php @@ -75,11 +75,11 @@ class Opalestate_Property_Api extends Opalestate_Base_API { 'callback' => [ $this, 'get_item' ], // 'permission_callback' => [ $this, 'get_item_permissions_check' ], ], - [ - 'methods' => WP_REST_Server::EDITABLE, - 'callback' => [ $this, 'update_item' ], - // 'permission_callback' => [ $this, 'update_item_permissions_check' ], - ], + // [ + // 'methods' => WP_REST_Server::EDITABLE, + // 'callback' => [ $this, 'update_item' ], + // // 'permission_callback' => [ $this, 'update_item_permissions_check' ], + // ], // [ // 'methods' => WP_REST_Server::DELETABLE, // 'callback' => [ $this, 'delete_item' ],