[wp-trac] [WordPress Trac] #38276: "Is thing public" API

WordPress Trac noreply at wordpress.org
Tue Oct 11 14:33:18 UTC 2016

#38276: "Is thing public" API
 Reporter:  jdgrimes         |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Role/Capability  |     Version:  trunk
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:

Comment (by PieWP):

 Replying to [comment:5 jdgrimes]:
 > Unless of course we add more read-type caps to capability API for other
 objects. But honestly I don't know that we want to encourage that.

 The first thing people will ask (once {{{is_post_accessible()}}} is
 introduced) will be: why can't I do this for terms/taxonomies?So let me
 ask the question in advance: Why would it make sense to hide a post but
 not to hide a term?

 Quite similar to the term_meta which was recently introduced (and already
 saw a request for term_relationship_meta passing by). With WP becoming
 more and more Object Orientated I can only assume we will see a
 {{{WP_Taxonomy}}} class soon; which will contain a similar {{{cap}}}
 attribute compared to the {{{WP_Post_Type}}} class.

 ''Please note I'm not trying to bash by questioning everything, just
 really want this feature to be introduced. My daily work involves making
 business portals based on WP so features like this are quite handy.''

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

More information about the wp-trac mailing list