[wp-trac] [WordPress Trac] #55895: Register custom post statuses

WordPress Trac noreply at wordpress.org
Wed Sep 3 14:09:41 UTC 2025


#55895: Register custom post statuses
------------------------------------+------------------------------
 Reporter:  angryjim                |       Owner:  (none)
     Type:  defect (bug)            |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Posts, Post Types       |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  dev-feedback has-patch  |     Focuses:
------------------------------------+------------------------------

Comment (by callumbw95):

 Hi @angryjim,

 I've reviewed the `get_post_statuses()` function and submitted a
 [https://github.com/WordPress/wordpress-develop/pull/9723 PR] with a
 proposed update building on your original work. My implementation ensures
 that all core post statuses are returned, along with any custom statuses,
 while still excluding those that were previously hidden.

 The goal is to preserve existing behavior by default, so the function
 continues to operate as it always has—now with the added benefit of
 supporting custom post statuses. This approach should help avoid any
 breaking changes for external code, including plugins and themes.

 Let me know your thoughts. 😃

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55895#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list