Title: Custom Status not working
Last modified: August 21, 2016

---

# Custom Status not working

 *  [leslie1019wp](https://wordpress.org/support/users/leslie1019wp/)
 * (@leslie1019wp)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/custom-status-not-working/)
 * I have installed EditFlow. I’ve made sure the only plugin on is EditFlow. I added
   the custom code for limiting status by user role “contributor.”
    I only made 
   one slight change in the code replacing “in-process” with “pending-review”. (
   We actually don’t need both “draft” and “in-process.”)
 * I logged out of my admin account and into my test account which is set to the
   role of “contributor.” The custom statuses do not appear. The only available 
   one is “draft.” I should at least have available “pitch.”
 * Even in my admin account, “pitch” isn’t present (it has “draft” and “pending 
   review.”
 * I’m confused about 1) the code for limiting status by user role b’c it doesn’t
   seem to function and 2) what is the point of having custom statuses for the plugin
   if they aren’t available even to an admin.
 * I’m new, so it is likely perhaps I’m not understanding this plugin’s workflow,
   but the code not working has me baffled completely. (I’m also not familiar with
   in the slightest with how to create a secondary plugin. That just sounds scary
   to me.)
 * [https://wordpress.org/plugins/edit-flow/](https://wordpress.org/plugins/edit-flow/)

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

 *  Thread Starter [leslie1019wp](https://wordpress.org/support/users/leslie1019wp/)
 * (@leslie1019wp)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/custom-status-not-working/#post-4595645)
 * Just to clarify, b’c I don’t state it very well above, these are the roles we
   have set for “contributor” in the code.
 * $permitted_statuses = array(
    ‘pitch’, ‘draft’, ‘pending-review’, );
 *  Plugin Contributor [Daniel Bachhuber](https://wordpress.org/support/users/danielbachhuber/)
 * (@danielbachhuber)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/custom-status-not-working/#post-4595767)
 * Couple questions that might help you track this down further:
    - Is the custom status module enabled, and active for your post type? If the
      custom statuses aren’t appearing for the admin user, the module might not 
      be active
    - Can you share the custom code you’ve added via Pastebin or a similar code-
      sharing tool?
 *  Thread Starter [leslie1019wp](https://wordpress.org/support/users/leslie1019wp/)
 * (@leslie1019wp)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/custom-status-not-working/#post-4595770)
 * Hi Daniel,s
 * Thank you so much for responding.
 * The custom status module is enabled and active for the post types, but only “
   pending review” is showing for admin. For contributor, only “draft” is showing.
   I also noticed (while testing and doing screencast vid tutorials for everyone)
   that the dashboard widget is not updating depending on an article’s status. They
   just keep saying “0” even when there’s items in draft, pending review. Oddly,
   under the Custom Status screen, it show 2 items in Draft status.
 * The code I used is from the plugin’s website. There’s an post there sharing what
   code to use to enable this. I copied and pasted making sure there were no extra
   spaces that php would read as html or otherwise. It’s as if all the bits and 
   pieces are there, but I just can’t get them to talk to each other.
 * I’ve only used pastebin once (ever) so I hope I’m doing this correct.
 *  Thread Starter [leslie1019wp](https://wordpress.org/support/users/leslie1019wp/)
 * (@leslie1019wp)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/custom-status-not-working/#post-4595773)
 * Ok, I’ll past it another way. [http://pastebin.com/2y2S5Xwp](http://pastebin.com/2y2S5Xwp)
 *  Plugin Contributor [Daniel Bachhuber](https://wordpress.org/support/users/danielbachhuber/)
 * (@danielbachhuber)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/custom-status-not-working/#post-4595776)
 * Hmm.. the code snippet looks fine. Can you share a screencast of your admin? 
   I think there’s a conflict going on somewhere, and it would be good to get a 
   visual sense of what stuff looks like.
 *  Thread Starter [leslie1019wp](https://wordpress.org/support/users/leslie1019wp/)
 * (@leslie1019wp)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/custom-status-not-working/#post-4595782)
 * I did disable all plugins see if there was a plugin causing a conflict. Unfortunately,
   it did not change the behavior. I also did a re-install of 3.8.1 “just in case.”
   No luck.
 * I considered uninstalling and reinstalling, but even though that deletes files,
   it doesn’t append the db. It would still look/fxn the same upon reinstall.
 * Here’s the unlisted screencast. [http://youtu.be/5PvTiTTnFEU](http://youtu.be/5PvTiTTnFEU)
 *  Thread Starter [leslie1019wp](https://wordpress.org/support/users/leslie1019wp/)
 * (@leslie1019wp)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/custom-status-not-working/#post-4595817)
 * Ok, so this is really crazy.
 * It’s all suddenly working. I did nothing, but go to bed last night. Get up this
   morning, have coffee and it’s all working. ??? lol
 * If I knew sleep and coffee would do the trick, I’d have just done that yesterday!
 * This is the craziest thing I’ve ever seen! But, I’m shutting up and drinking 
   my coffee.
 * I do appreciate how fast you responded and concern. Many developers are not active
   and it’s very reassuring to see a dev team which is very involved. 🙂

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

The topic ‘Custom Status not working’ is closed to new replies.

 * ![](https://ps.w.org/edit-flow/assets/icon-256x256.png?rev=3433533)
 * [Edit Flow](https://wordpress.org/plugins/edit-flow/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/edit-flow/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/edit-flow/)
 * [Active Topics](https://wordpress.org/support/plugin/edit-flow/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/edit-flow/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/edit-flow/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [leslie1019wp](https://wordpress.org/support/users/leslie1019wp/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/custom-status-not-working/#post-4595817)
 * Status: not resolved