Title: [Plugin: Quick Post Widget] Contributor access?
Last modified: August 20, 2016

---

# [Plugin: Quick Post Widget] Contributor access?

 *  Resolved [Ronald](https://wordpress.org/support/users/rcherryjam21net/)
 * (@rcherryjam21net)
 * [15 years ago](https://wordpress.org/support/topic/plugin-quick-post-widget-contributor-access/)
 * How can I let Contributors have access to the widget? I’d like to give Contributors
   access so that I can moderate the posts.
 * [http://wordpress.org/extend/plugins/quick-post-widget/](http://wordpress.org/extend/plugins/quick-post-widget/)

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [jinbatsu](https://wordpress.org/support/users/jinbatsu/)
 * (@jinbatsu)
 * [15 years ago](https://wordpress.org/support/topic/plugin-quick-post-widget-contributor-access/#post-2093701)
 * Yes, me too…
    I want also like that. So, not only guest can post in the front
   page. Registered member should use his name for the Author.
 *  Plugin Author [inapan](https://wordpress.org/support/users/inapan/)
 * (@inapan)
 * [15 years ago](https://wordpress.org/support/topic/plugin-quick-post-widget-contributor-access/#post-2093732)
 * There are some posts about contributor access.
 * First, the plugin doesn’t just allow guest posting. It allows guest posting only
   if you explicitly enable it. Normally the widget only shows for logged-in users.
 * For logged-in users the post authors name is the name of the user.
 * To determine whether the users profile of logged-in users allows posting, the
   widget uses the code `current_user_can('publish_posts')`. Normally Subscribers
   and Contributors cannot publish posts so the widget doesn’t show for them.
    You
   can however expand the capabilities of these roles with plugins, for instance
   the User Role Editor plugin. If you enable the Contributor role to publish_posts
   the widget will show for them.
 * You can also try to change some code in the quick-post-widget.php. Try changing
   on line 872 of the current version 1.8.1 the line which says
 * `if ( current_user_can('publish_posts') )`
 * to
 * `if ( $current_user->user_level >= 1 )`
 * Of course the disadvantage of hacking is that you will lose those customizations
   when upgrading the plugin. The advantage however is that you won’t need an extra
   role editor plugin.
 * Please reply whether all this has been helpful to you.
 * inapan
 *  Thread Starter [Ronald](https://wordpress.org/support/users/rcherryjam21net/)
 * (@rcherryjam21net)
 * [15 years ago](https://wordpress.org/support/topic/plugin-quick-post-widget-contributor-access/#post-2093743)
 * This is a great plugin! With WordPress the default capability of a Contributor
   is to be able to submit posts for review. Pending approval by the admin they 
   will be published. I would like a contributor able to submit post using quick-
   post as he/she can on the back end of WordPress.
 * Tried the Role Editor plugin you suggested and the hacks to quick-post-widget.
   php but after making those changes a Contributor is able to publish posts, not
   just submit them for review by the admin. I appreciate your work on this. Access
   to the plugin site is giving a database error.
 *  Plugin Author [inapan](https://wordpress.org/support/users/inapan/)
 * (@inapan)
 * [15 years ago](https://wordpress.org/support/topic/plugin-quick-post-widget-contributor-access/#post-2093752)
 * [@ronald](https://wordpress.org/support/users/ronald/)
 * I’m afraid I can only help you with another small hack but I will give all the
   posts about contributor and subscriber access some thoughts to perhaps come up
   with a more elegant solution in the future.
 * For the time being a hack which I think might work (you also need the hack, or
   User Role Editor plugin described above). Place the following code in the quick-
   post-widget.php file before the post gets inserted, for instance on line 1197(
   for version 1.8.1 of the plugin):
 *     ```
       if ( $current_user->user_level == 1 ) {
       	$publish_status = 'pending';
       }
       ```
   
 * This way, only for contributors, the publish status allways becomes pending.
 * Hope this helps for now and, as said, I will think of a better solution for the
   future.
 * inapan
 *  Thread Starter [Ronald](https://wordpress.org/support/users/rcherryjam21net/)
 * (@rcherryjam21net)
 * [15 years ago](https://wordpress.org/support/topic/plugin-quick-post-widget-contributor-access/#post-2093763)
 * Yes, that worked. Now contributor post are held for review. Thanks I appreciate
   your expertise!
 *  Plugin Author [inapan](https://wordpress.org/support/users/inapan/)
 * (@inapan)
 * [14 years, 12 months ago](https://wordpress.org/support/topic/plugin-quick-post-widget-contributor-access/#post-2093777)
 * [@ronald](https://wordpress.org/support/users/ronald/)
 * You’re welcome.
 * inapan
 *  [Brian](https://wordpress.org/support/users/womensradio/)
 * (@womensradio)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-quick-post-widget-contributor-access/#post-2093838)
 * [@inapan](https://wordpress.org/support/users/inapan/) it looks like you know
   your stuff! Any chance you might have a hack in mind for our similar situation?
 * Our contributors will be submitting content for approval, but we want to give
   them the ability to schedule a future publication date.
 * It seems like your hack mentioned above would do the trick:
 *     ```
       if ( $current_user->user_level == 1 ) {
       	$publish_status = 'pending';
       }
       ```
   
 * However, we would be editing the ‘Posts.php’ file, correct? Is there a certain
   line/section we might apply this to?
 * Many Thanks!
 * -Brian & WR
 *  [sjoannef](https://wordpress.org/support/users/sjoannef/)
 * (@sjoannef)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-quick-post-widget-contributor-access/#post-2093844)
 * Just wanted to vote for the plugin to honor the contributor role (ie – they are
   allowed to post, but posts are held for review). It was the first thing I wanted
   to do with the plugin (which is how I found this thread!). In the meantime, I’ll
   use the hacks mentioned above.
 * Thanks!
 * Other than that – it was exactly what I needed!
 *  [climatebites](https://wordpress.org/support/users/climatebites/)
 * (@climatebites)
 * [14 years ago](https://wordpress.org/support/topic/plugin-quick-post-widget-contributor-access/#post-2093862)
 * One more vote for the plugin to be visible to contributors (to submit for review).
 * Any progress on that?
 * I tried to insert the hack code above, but WP gave me an error saying I was violating
   a security rule, which I could disable only by modifying .htaccess. I didn’t 
   want to mess around with this, so I dropped it.
 * Unfortunately, this means for now, your otherwise excellent widget is useless
   to us. Our few authors — who review no review — don’t need the widget; but the
   contributors who could benefit from the widget can’t see it!

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘[Plugin: Quick Post Widget] Contributor access?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/quick-post-widget.svg)
 * [Quick Post Widget](https://wordpress.org/plugins/quick-post-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/quick-post-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/quick-post-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/quick-post-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/quick-post-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/quick-post-widget/reviews/)

 * 9 replies
 * 6 participants
 * Last reply from: [climatebites](https://wordpress.org/support/users/climatebites/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/plugin-quick-post-widget-contributor-access/#post-2093862)
 * Status: resolved