Title: Please add filter for post_status array
Last modified: August 31, 2016

---

# Please add filter for post_status array

 *  Resolved [mvbaxter](https://wordpress.org/support/users/mvbaxter/)
 * (@mvbaxter)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/please-add-filter-for-post_status-array/)
 * I have installed the plugin “Prepare New Version”. Like many workflow plugins,
   this has added its own status that is not in your normal list.
 * It would be very useful if you added a filter so I can add non-Publish status
   to the array of those where “Share draft publicly” metabox should show.
 * Perhaps something like:
 * \`
    $draft_status = apply_filters(‘sdp_get_status_array’,array(‘draft’,’pending’,’
   auto-draft’,’future’)); if ( in_array( $post_status, $draft_status) ){ add_meta_box(‘
   share_drafts_publicly’, esc_html__( ‘Share Drafts Publicly’, ‘share_drafts_publicly’),
   array( $this, ‘display_meta_box’ ), null, ‘side’, ‘low’ ); }; // end if `
 * [https://wordpress.org/plugins/share-drafts-publicly/](https://wordpress.org/plugins/share-drafts-publicly/)

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

 *  Plugin Author [Travis Lopes](https://wordpress.org/support/users/travislopes/)
 * (@travislopes)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/please-add-filter-for-post_status-array/#post-7055989)
 * Version 1.1.1 has been released which introduces a new filter, “sdp_allowed_post_status”,
   which allows for setting which post statuses will present the “Share Drafts Publicly”
   metabox.
 *  Thread Starter [mvbaxter](https://wordpress.org/support/users/mvbaxter/)
 * (@mvbaxter)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/please-add-filter-for-post_status-array/#post-7055995)
 * Wow, that was fast! Thank you very much.

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

The topic ‘Please add filter for post_status array’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/share-drafts-publicly_f0f0f0.svg)
 * [Share Drafts Publicly](https://wordpress.org/plugins/share-drafts-publicly/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/share-drafts-publicly/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/share-drafts-publicly/)
 * [Active Topics](https://wordpress.org/support/plugin/share-drafts-publicly/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/share-drafts-publicly/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/share-drafts-publicly/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [mvbaxter](https://wordpress.org/support/users/mvbaxter/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/please-add-filter-for-post_status-array/#post-7055995)
 * Status: resolved