I'm modifying a plugin which has two media buttons under it's custom post type. One button for adding an image and one for adding a video. What I want to achieve is to allow the use of both for one user role, and allow image upload for another user role (disabling the video upload).

Is there a way to create a capability. I have User Role Editor and Adminimize, but neither of those are an option here. Can I somehow tag these buttons to make them show up in User Role Editor or Adminimize?

Thank you!

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.