From 0048d5d619d8f883a30d15834d8fbce5dd7fa765 Mon Sep 17 00:00:00 2001 From: nikitozzzzzzz Date: Mon, 11 Jun 2018 22:26:09 +0300 Subject: [PATCH] - deprecated REST API user options; --- includes/core/class-rest-api.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/core/class-rest-api.php b/includes/core/class-rest-api.php index 8a75f37e..288d8737 100644 --- a/includes/core/class-rest-api.php +++ b/includes/core/class-rest-api.php @@ -70,10 +70,10 @@ if ( ! class_exists( 'um\core\REST_API' ) ) { add_action( 'template_redirect', array( $this, 'process_query' ), -1 ); add_filter( 'query_vars', array( $this, 'query_vars' ) ); - add_filter( 'um_user_profile_additional_fields', array( $this, 'user_key_field' ), 3, 2 ); + //add_filter( 'um_user_profile_additional_fields', array( $this, 'user_key_field' ), 3, 2 ); - add_action( 'personal_options_update', array( $this, 'update_key' ) ); - add_action( 'edit_user_profile_update', array( $this, 'update_key' ) ); + //add_action( 'personal_options_update', array( $this, 'update_key' ) ); + //add_action( 'edit_user_profile_update', array( $this, 'update_key' ) ); // Determine if JSON_PRETTY_PRINT is available $this->pretty_print = defined( 'JSON_PRETTY_PRINT' ) ? JSON_PRETTY_PRINT : null;