[wp-trac] [WordPress Trac] #49628: Add is_post_type_viewable filter

WordPress Trac noreply at wordpress.org
Wed Apr 8 05:41:12 UTC 2020


#49628: Add is_post_type_viewable filter
-------------------------------+-----------------------------
 Reporter:  powerbuoy          |       Owner:  SergeyBiryukov
     Type:  feature request    |      Status:  reviewing
 Priority:  normal             |   Milestone:  5.5
Component:  Posts, Post Types  |     Version:  5.3.2
 Severity:  normal             |  Resolution:
 Keywords:  has-patch          |     Focuses:  administration
-------------------------------+-----------------------------

Comment (by peterwilsoncc):

 @donmhico Minor note for the docs, when the filter is called `$post_type`
 will always be a `WP_Post_Type` object. If the function was passed a
 string it will be converted by that point.

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


More information about the wp-trac mailing list