[wp-trac] [WordPress Trac] #51403: Add filter for _post_states as it outputs raw HTML

WordPress Trac noreply at wordpress.org
Mon Oct 20 21:43:27 UTC 2025


#51403: Add filter for _post_states as it outputs raw HTML
-------------------------------------------------+-------------------------
 Reporter:  brandbrilliance                      |       Owner:
                                                 |  westonruter
     Type:  enhancement                          |      Status:  reopened
 Priority:  normal                               |   Milestone:  6.9
Component:  Posts, Post Types                    |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  good-first-bug has-test-info has-    |     Focuses:  template
  patch has-unit-tests                           |
-------------------------------------------------+-------------------------

Comment (by westonruter):

 In [changeset:"60993" 60993]:
 {{{
 #!CommitTicketReference repository="" revision="60993"
 Posts, Post Types: Rename new `post_states_string` filter to
 `post_states_html`.

 Add examples to the PHPDoc for the filter params.

 Developed in https://github.com/WordPress/wordpress-develop/pull/10360

 Follow-up to [60986].

 Props dmsnell, westonruter.
 See #51403.
 }}}

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


More information about the wp-trac mailing list