[wp-trac] [WordPress Trac] #23422: Add query filter argument to register_taxonomy

WordPress Trac noreply at wordpress.org
Fri May 13 18:45:22 UTC 2016


#23422: Add query filter argument to register_taxonomy
-------------------------+-----------------------------
 Reporter:  tifosi       |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Taxonomy     |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:  administration
-------------------------+-----------------------------

Comment (by DrewAPicture):

 Replying to [comment:11 tifosi]:
 > The idea is to have it as an argument to register_taxonomy() alongside
 `show_admin_column`. As such i'd prefer `show_admin_filter` with the
 documentation caveat that it requires `show_admin_column` to be true/1 to
 work.

 Why should showing the column be a prerequisite to showing a completely
 different part of the UI? As it is, `show_admin_filter` is pretty vague.
 Filtering ''what'' exactly? :-)

 > That would be a per-taxonomy argument. Multiple taxonomies per post type
 would be handled on a 1:1 basis, i.e. as arguments in respective
 register_taxononmy() calls.

 I was talking about cases where a single taxonomy is associated with
 multiple post types.

 --

 Either way, a first-run patch would be good so we aren't talking in the
 theoretical.

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


More information about the wp-trac mailing list