- This topic has 5 replies, 2 voices, and was last updated 1 year, 10 months ago by .
-
Topic
-
I want to use mb_user_meta & mb_rest_api.
I purchased mb_user_meta. and I followed example code on https://docs.metabox.io/extensions/mb-user-meta/
and I can see the proper page in admin and I can update the mb value on that page.but I can not update my user MB data with rest-api.
Below is my Server code.
add_action( ‘rwmb_meta_boxes’, ‘prefix_register_meta_boxes’ ); function prefix_register_meta_boxes( $meta_boxes ) { $meta_boxes[] = array( ‘id’ => ‘personal’, ‘title’ => ‘Personal Information’, ‘type’ => ‘user’, // Specifically for user ‘context’ => ‘normal’, ‘priority’ => ‘high’, 'fields' => array( array( 'name' => 'test mb for user', 'desc' => '', 'id' => 'test4', 'type' => 'string', ), ) );
and this is trying & result page from POSTMAN.
fail update
PS.
meta-box version: 4.17.0
mb_meta_user version: 1.2.3
mb_rest_api: 1.3.2When I try with POSTMAN I logged in admin role user.
I checked there is no problem to update other type(Post)’s MB data.Only problem in updating “user” type.
I checked “activate” of my mb_user_meta plugin.I tried to find any errors from php-error.log or php-fpm-error.log.
but didn’t find anything.
- You must be logged in to reply to this topic.