Hello guys, many time we use login register in wordpress site and allow user to add post from front-end side. this time we need to setup user role because without user role define, other user can see other user upload media files. for this issue today i tell you about wordpress plugin which can define user role by categories.
“Change User Role using User Role Editor Plugin”
User Role Editor
With User Role Editor WordPress plugin you can change user role (except Administrator) capabilities easy, with a few clicks. Just turn on check boxes of capabilities you wish to add to the selected role and click “Update” button to save your changes. That’s done. Add new roles and customize its capabilities according to your needs, from scratch of as a copy of other existing role. Unnecessary self-made role can be deleted if there are no users whom such role is assigned.
Role assigned every new created user by default may be changed too. Capabilities could be assigned on per user basis. Multiple roles could be assigned to user simultaneously. You can add new capabilities and remove unnecessary capabilities which could be left from uninstalled plugins. Multi-site support is provided.
this plugin very useful for this kind of function and work like charm.
If you want only hide media files from other user that can be easy by just add some code into your theme function file. after add the code user can’t be able to other user media files in media upload for this code please see my post – Hide Post Media from other User in WordPress.