Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm new to plugin writing, but intermediate in theme making. I wonder if it is possible to write a plugin, to add addition functionality for users, who don't have admin status. Can I give them permission for upload images and so on? Can I write a plugin, what help no admin users upload and manage their images, and some personal texts?

share|improve this question

1 Answer 1

The rules for themes and plugins are basically the same. You can make plugins and themes administrable by anyone in most respects except that non-admins can't install and uninstall plugins/themes.

For instance, you should use the if_current_user_can('do_stuff') conditional to handle permissions on operations. Also, the add_menu_page() function lets you specify what capabilities a user needs to have to be able to see it. Same as a theme.

Make sense?

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.