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

WordPress Trac noreply at wordpress.org
Tue Apr 7 15:00:05 UTC 2020


#49628: Add is_post_type_viewable filter
-------------------------------+------------------------------
 Reporter:  powerbuoy          |       Owner:  (none)
     Type:  feature request    |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:  5.3.2
 Severity:  normal             |  Resolution:
 Keywords:  has-patch          |     Focuses:  administration
-------------------------------+------------------------------
Changes (by donmhico):

 * keywords:   => has-patch


Comment:

 Hi @powerbuoy,

 Thank you for the ticket.
 [https://core.trac.wordpress.org/attachment/ticket/49628/49628.diff
 49628.diff] introduces a new filter `post_type_viewable` which exposes
 `$post_type` to allow users to return either `true` or `false` depending
 on their needs.

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


More information about the wp-trac mailing list