Categories
General

WP-Polls for non-admins

WP-Polls is a nice plugin that lets you add polls to your WordPress site, either in posts, pages, or in your sidebar via a widget. For some (probably logical) reason, the author decided to hard-code the WordPress role allowed to manage polls to the administrator. I’d rather let my blog users set up their own polls – maybe they’ll manage to blow up something by being able to, but I doubt it. Here’s how to allow a non-admin roles to manage polls:

  1. Search for “administrator” in wp-polls.php.
  2. Replace it with the desired role – such as “editor” or “author”.
  3. Deactivate and reactivate the plugin.

Keep in mind that you’ll need to re-do this each time you update the plugin…unless/until the plugin author decides to add an admin Settings page to do this.

Avatar photo

By isaac

I like cats. he/him