From 7c953687ae9883b685ba39a62b77c06c031d4211 Mon Sep 17 00:00:00 2001 From: Hoang Huu Date: Tue, 8 Oct 2019 08:19:09 +0700 Subject: [PATCH] Update class-opalestate-api-admin.php --- inc/api/class-opalestate-api-admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/api/class-opalestate-api-admin.php b/inc/api/class-opalestate-api-admin.php index 4dbad4c2..2121ab59 100644 --- a/inc/api/class-opalestate-api-admin.php +++ b/inc/api/class-opalestate-api-admin.php @@ -235,7 +235,7 @@ class Opalestate_API_Admin { * @since 1.1 * */ - function user_key_field( $user ) { + public function user_key_field( $user ) { if ( ( opalestate_get_option( 'api_allow_user_keys', false ) || current_user_can( 'manage_opalestate_settings' ) ) && current_user_can( 'edit_user', $user->ID ) ) { $user = get_userdata( $user->ID ); ?>