Support › MB User Meta › Saving problem with multiple user rolesResolved
I added a Metaboxes using the User Meta plugin, with a include option:
'include' => array(
'user_role' => array('user_test'),
I need to use multiple roles for each user, so I used this plugin (https://wordpress.org/plugins/multiple-roles/) to enable this "hidden feature".
The problem is that activating this plugin, the Metaboxes is properly displayed when a user user_role match to that included in the "includes" option, but when I save the user page, all the metabox.io fields are not saved.
How could I do to fix it?
Can you provide the code you use to register meta box? I tested with above plugin but don't meet the issue.
Hi, here the code used to register the Metaboxes.
We have just updated Meta Box Include Exclude extension. Please update it and check if problem has gone. Thank you.
Now the metabox save their data and the "exclude" option work well, but using the "include" option (like the code above), the Metabox remains visible to all user_roles.
The backend page: https://tppr.me/mPGHs
If you (current user) has edit_users capability, you can see the meta box for every roles. Please try creating 2 test users with different roles and login to each account to test.