In my website there is a master admin and some editors.
Each editor can edit and fill some custom fields too (meta boxes added by Meta Box
plugin APIs) but I need to restrict editing and showing some custom fields to that group but didn’t found anything related to this topic.
any help will be appreciated.
There are two free plugins that will work together to accomplish this, and more…
The first plugin is Advanced Custom Fields: http://wordpress.org/plugins/advanced-custom-fields/
Advanced Custom Fields lets you create and assign groups of custom fields to specific user roles or post types.
The second plugin is the Members plugin which extends and allows customization/creation of user roles: http://wordpress.org/plugins/members/ .
How it works. Use the Members plugin to create a new user role with the same (or whatever you like) permissions as Editor, call them ‘Editors Plus’. Then use Advanced Custom Fields to create a custom field group that only ‘Editors Plus’ can access. IE: Show this field group if: ‘User’, ‘is equal to’, ‘Editor Plus’. All of it happens via easy GUIs.
Register a new role with help of this link:
http://codex.wordpress.org/Function_Reference/add_role
and then apply authentication to this whatever you want.
thanks.